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

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

[elpa] master 7183491 332/399: ivy.el (ivy--minibuffer-setup): Avoid ext


From: Oleh Krehel
Subject: [elpa] master 7183491 332/399: ivy.el (ivy--minibuffer-setup): Avoid extra call to ivy--exhibit
Date: Sat, 20 Jul 2019 14:57:51 -0400 (EDT)

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

    ivy.el (ivy--minibuffer-setup): Avoid extra call to ivy--exhibit
    
    When debugging, `ivy--exihibit' was called twice after the inital 
`ivy-read'.
    Maybe the call in `ivy--minibuffer-setup' isn't needed after all.
    
    Let's remove it for now. No existing tests break. If something breaks,
    we'll add a new test.
---
 ivy.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ivy.el b/ivy.el
index 24797c2..c1a8f5a 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2744,9 +2744,7 @@ tries to ensure that it does not change depending on the 
number of candidates."
   (add-hook 'post-command-hook #'ivy--queue-exhibit nil t)
   (let ((hook (ivy-alist-setting ivy-hooks-alist)))
     (when (functionp hook)
-      (funcall hook)))
-  ;; Show completions with empty input.
-  (ivy--exhibit))
+      (funcall hook))))
 
 (defun ivy--input ()
   "Return the current minibuffer input."



reply via email to

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