summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungKi Kim <tttuuu888@gmail.com>2020-12-14 01:03:16 +0900
committerSeungKi Kim <tttuuu888@gmail.com>2020-12-14 01:12:10 +0900
commitde96ed6c3fb51b49a33a5cc4dacd74763f90d1b8 (patch)
tree8d6d35f0feffba30e6cffe42f6b31650242946ac
parent08a00b81747c6b623dd1adc7491a1e2a4c3a3d2a (diff)
Fix to properly exit the action list #103
1. Fix that pressing `ESC` is showing "^[ is not bound" issue. 2. Fix that pressing `C-g` is showing "^[ is not bound" issue. 3. Add support `M-o` to properly exit the action list
-rw-r--r--ivy-posframe.el17
1 files changed, 9 insertions, 8 deletions
diff --git a/ivy-posframe.el b/ivy-posframe.el
index 555fc6e..f9e59b6 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -361,15 +361,16 @@ This variable is useful for `ivy-posframe-read-action' .")
(string-prefix-p key (car x)))
(cdr actions)))
(not (string= key (car (nth action-idx (cdr actions))))))
- (setq key (concat key (string
- (read-key
- (if (functionp display-function)
- (let ((ivy-posframe--ignore-prompt t))
- (funcall display-function hint)
- "Please type a key: ")
- hint))))))
+ (setq key (concat key (key-description
+ (vector
+ (read-key
+ (if (functionp display-function)
+ (let ((ivy-posframe--ignore-prompt t))
+ (funcall display-function hint)
+ "Please type a key: ")
+ hint)))))))
(ivy-shrink-after-dispatching)
- (cond ((member key '("ESC" "C-g"))
+ (cond ((member key '("ESC" "C-g" "M-o"))
nil)
((null action-idx)
(message "%s is not bound" key)