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

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

[elpa] master 6516265 192/399: ivy-overlay.el: Do not assume in-buffer c


From: Oleh Krehel
Subject: [elpa] master 6516265 192/399: ivy-overlay.el: Do not assume in-buffer completion
Date: Sat, 20 Jul 2019 14:57:21 -0400 (EDT)

branch: master
commit 6516265bf64a6c849dc9be0eca0dce3ebcfa4504
Author: Basil L. Contovounesios <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy-overlay.el: Do not assume in-buffer completion
    
    (ivy-display-function-overlay): Pad to current-column when
    ivy-completion-beg is unset.
    
    Fixes #2048
    Fixes #2049
---
 ivy-overlay.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ivy-overlay.el b/ivy-overlay.el
index 422a5b2..648035f 100644
--- a/ivy-overlay.el
+++ b/ivy-overlay.el
@@ -134,7 +134,8 @@ Hide the minibuffer contents and cursor."
                                1
                              0)
                            (save-excursion
-                             (goto-char ivy-completion-beg)
+                             (when ivy-completion-beg
+                               (goto-char ivy-completion-beg))
                              (current-column)))))))))
         (let ((cursor-offset (1+ (length ivy-text))))
           (ivy-add-face-text-property cursor-offset (1+ cursor-offset)



reply via email to

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