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

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

[elpa] master 45383fe 330/348: ivy-overlay.el (ivy-display-function-over


From: Oleh Krehel
Subject: [elpa] master 45383fe 330/348: ivy-overlay.el (ivy-display-function-overlay): Put overlay at symbol start
Date: Sat, 8 Apr 2017 11:04:24 -0400 (EDT)

branch: master
commit 45383fe96574a52ce50dbdadfeb8d419d5158ef6
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy-overlay.el (ivy-display-function-overlay): Put overlay at symbol start
---
 ivy-overlay.el | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/ivy-overlay.el b/ivy-overlay.el
index 9503b86..861d1f6 100644
--- a/ivy-overlay.el
+++ b/ivy-overlay.el
@@ -97,11 +97,9 @@ Hide the minibuffer contents and cursor."
                (+ (if (eq major-mode 'org-mode)
                       (* org-indent-indentation-per-level (org-current-level))
                     0)
-                  (if (eq (ivy-state-caller ivy-last)
-                          'ivy-completion-in-region)
-                      (- ivy-completion-beg ivy-completion-end)
-                    0)
-                  (current-column))))))
+                  (save-excursion
+                    (goto-char ivy-completion-beg)
+                    (current-column)))))))
         (add-face-text-property cursor-pos (1+ cursor-pos)
                                 'ivy-cursor t overlay-str)
         (ivy-overlay-show-after overlay-str)))))



reply via email to

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