emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot fcb8ab6 11/69: Per #121: fix bug introduced by co


From: João Távora
Subject: [elpa] externals/eglot fcb8ab6 11/69: Per #121: fix bug introduced by commit fixing this issue
Date: Sun, 20 Oct 2019 08:21:42 -0400 (EDT)

branch: externals/eglot
commit fcb8ab638bf20cd51f13445bbbc3213b774333d0
Author: Sergey Kostyaev <address@hidden>
Commit: João Távora <address@hidden>

    Per #121: fix bug introduced by commit fixing this issue
    
    * eglot.el (eglot--sig-info): Protect against invalid label.
---
 eglot.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/eglot.el b/eglot.el
index 18067f6..d251bcb 100644
--- a/eglot.el
+++ b/eglot.el
@@ -2005,9 +2005,10 @@ is not active."
                                    params-end t)
                                   (list (match-beginning 0) (match-end 0))))
                          (mapcar #'1+ (append label nil)))))
-                   (add-face-text-property
-                    beg end
-                    'eldoc-highlight-function-argument)))
+                   (if (and beg end)
+                       (add-face-text-property
+                        beg end
+                        'eldoc-highlight-function-argument))))
                ;; ...and/or maybe add its doc on a line by its own.
                (when documentation
                  (goto-char (point-max))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]