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

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

[elpa] externals/ivy 6a8e561 1/2: Allow actions to be read in minibuffer


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy 6a8e561 1/2: Allow actions to be read in minibuffer-only frame
Date: Fri, 3 Sep 2021 14:19:50 -0400 (EDT)

branch: externals/ivy
commit 6a8e5611f32cf7cc77c2c6974dc2d3a18f32d5a5
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    Allow actions to be read in minibuffer-only frame
    
    * ivy.el (ivy-read-action-by-key): Allow
    ivy-shrink-after-dispatching to fail in minibuffer-only frames,
    since it doesn't seem to be needed in that case.
    
    Fixes #2726.
---
 ivy.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index c693ab7..851d272 100644
--- a/ivy.el
+++ b/ivy.el
@@ -855,7 +855,8 @@ selection, non-nil otherwise."
                                   (cdr actions)))
                 (not (string= key (car (nth action-idx (cdr actions))))))
       (setq key (concat key (key-description (vector (read-key hint))))))
-    (ivy-shrink-after-dispatching)
+    ;; Ignore resize errors with minibuffer-only frames (#2726).
+    (ignore-errors (ivy-shrink-after-dispatching))
     (cond ((member key '("ESC" "C-g" "M-o"))
            nil)
           ((null action-idx)



reply via email to

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