branch: master
commit fe92b1beb8d244b637a158a70cfcc069dfcbb85b
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el: Fix the "C-m" not working for last commit
---
ivy.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index 0cea3d9..8926f6a 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1438,8 +1438,6 @@ customizations apply to the current completion session."
(set hist (cons (propertize item 'ivy-index ivy--index)
(delete item
(cdr (symbol-value hist))))))))
- (when (> (length ivy--current) 0)
- (remove-text-properties 0 1 '(idx) ivy--current))
ivy--current))
(remove-hook 'post-command-hook #'ivy--exhibit)
(when (setq unwind (ivy-state-unwind ivy-last))
@@ -1448,6 +1446,8 @@ customizations apply to the current completion session."
(when recursive-ivy-last
(ivy--reset-state (setq ivy-last recursive-ivy-last)))))
(ivy-call)
+ (when (> (length ivy--current) 0)
+ (remove-text-properties 0 1 '(idx) ivy--current))
(when (and recursive-ivy-last
ivy-recursive-restore)
(ivy--reset-state (setq ivy-last recursive-ivy-last))))))