branch: externals/ivy
commit 39e08799eda8fa2131fe72772cfd477374a97640
Author: Eugene Bulavin <eugene.bulavin...@gmail.com>
Commit: Basil L. Contovounesios <conto...@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)

Reply via email to