emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master d9d6064 241/399: ivy.el (ivy-completion-in-region-action):


From: Oleh Krehel
Subject: [elpa] master d9d6064 241/399: ivy.el (ivy-completion-in-region-action): Obey :exit-function
Date: Sat, 20 Jul 2019 14:57:32 -0400 (EDT)

branch: master
commit d9d60643b13fb0cdf514a24756bd502b2cdad4fb
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-completion-in-region-action): Obey :exit-function
    
    Have `completion--done' obey the :exit-function logic for us.
    See `completion--do-completion'.
    
    Use case: the :exit-function in `eglot-completion-at-point' will erase
    the inserted annotation, which holds e.g. the function argument list,
    leaving only the function name.
---
 ivy.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ivy.el b/ivy.el
index c5aecb9..b0db837 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2273,6 +2273,7 @@ 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)
       (setq ivy-completion-end (point))
       (save-excursion
         (dolist (cursor fake-cursors)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]