branch: master
commit 45383fe96574a52ce50dbdadfeb8d419d5158ef6
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
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)))))