]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug introduced by commit fixing this issue
authorSergey Kostyaev <s-kostyaev@users.noreply.github.com>
Thu, 10 Jan 2019 19:45:30 +0000 (02:45 +0700)
committerJoão Távora <joaotavora@gmail.com>
Thu, 10 Jan 2019 19:45:30 +0000 (19:45 +0000)
* eglot.el (eglot--sig-info): Protect against invalid label.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/121

lisp/progmodes/eglot.el

index 18067f61b56e50ab26dc2929cdd1ae879bdc85b5..d251bcb7c091651660c72448ace3cb13ccf12552 100644 (file)
@@ -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))