branch: externals/devdocs
commit 51c34c103f08fedb9213355b0b509d83d3042baa
Author: Augusto Stoffel <arstof...@gmail.com>
Commit: Augusto Stoffel <arstof...@gmail.com>

    Eat disambiguation cookies (fix for Ivy)
---
 devdocs.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/devdocs.el b/devdocs.el
index 7827c53..6b37738d 100644
--- a/devdocs.el
+++ b/devdocs.el
@@ -329,7 +329,9 @@ URL can be an internal link in a DevDocs document."
          (max (point-max)))
     (while (and (< pos max) (/= 0 (char-after pos)))
       (setq pos (1+ pos)))
-    (add-text-properties pos max '(invisible t rear-nonsticky t 
cursor-intangible t))))
+    (when (< pos max)
+      (add-text-properties pos (next-property-change pos nil max)
+                           '(invisible t rear-nonsticky t)))))
 
 (defun devdocs--read-entry (prompt)
   "Read the name of an entry in a document, using PROMPT.

Reply via email to