branch: master
commit e9f7dcb0d26e02c2883774bae568c6eda7fe56ff
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-immediate-done): Update
* ivy.el (ivy-completion-in-region-action): Update.
Didn't work right when only one candidate.
---
ivy.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index 6d2231f..00c7886 100644
--- a/ivy.el
+++ b/ivy.el
@@ -850,6 +850,7 @@ If the text hasn't changed as a result, forward to
`ivy-alt-done'."
'grep-files-history)))
(expand-file-name ivy-text ivy--directory)
ivy-text)))
+ (setq ivy-completion-beg ivy-completion-end)
(setq ivy-exit 'done)
(exit-minibuffer))
@@ -1937,8 +1938,6 @@ 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))