[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy 39e0879 1/3: Fix :exit-function status for in-buffe
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy 39e0879 1/3: Fix :exit-function status for in-buffer completion |
Date: |
Sun, 4 Apr 2021 09:13:25 -0400 (EDT) |
branch: externals/ivy
commit 39e08799eda8fa2131fe72772cfd477374a97640
Author: Eugene Bulavin <eugene.bulavin.se@gmail.com>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Fix :exit-function status for in-buffer completion
* ivy.el (ivy-completion-in-region-action): completion--done should
receive 'finished' if completion is done (PR #2837).
Copyright-paperwork-exempt: yes
---
ivy.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index 48ffa66..e262f7e 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2520,7 +2520,9 @@ The previous string is between `ivy-completion-beg' and
`ivy-completion-end'."
(delete-region beg end))
(setq ivy-completion-beg (point))
(insert (substring-no-properties str))
- (completion--done str 'exact)
+ (completion--done str (if (eq ivy-exit 'done)
+ 'finished
+ 'exact))
(setq ivy-completion-end (point))
(save-excursion
(dolist (cursor fake-cursors)