Skip to content

Commit

Permalink
ivy-overlay.el: Do not assume in-buffer completion
Browse files Browse the repository at this point in the history
(ivy-display-function-overlay): Pad to current-column when
ivy-completion-beg is unset.

Fixes abo-abo#2048
  • Loading branch information
basil-conto committed May 2, 2019
1 parent 0e62f0d commit 4d2af78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ivy-overlay.el
Expand Up @@ -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)
Expand Down

0 comments on commit 4d2af78

Please sign in to comment.