branch: master
commit 6516265bf64a6c849dc9be0eca0dce3ebcfa4504
Author: Basil L. Contovounesios <[email protected]>
Commit: Oleh Krehel <[email protected]>
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)