branch: master
commit acb5f118e8fff6d3bd2441bc47c69699e89d64af
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-completion-in-region-action): Fix "C-M-j"
Fixes #1178
---
ivy.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ivy.el b/ivy.el
index 381a0d8..610932e 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1937,6 +1937,8 @@ The previous string is between `ivy-completion-beg' and
`ivy-completion-end'."
(when (consp str)
(setq str (cdr str)))
(when (stringp str)
+ (unless (member str ivy--old-cands)
+ (setq ivy-completion-beg ivy-completion-end))
(let ((fake-cursors (and (featurep 'multiple-cursors)
(mc/all-fake-cursors)))
(pt (point))