mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
avy.el (avy-read): Don't call `avy--key-to-char' too early
If the key is intended for dispatch, it's not necessary for `avy--key-to-char' to encode it as a char.
This commit is contained in:
parent
343fc42de1
commit
66886e265c
5
avy.el
5
avy.el
@ -518,13 +518,14 @@ multiple DISPLAY-FN invocations."
|
|||||||
(funcall cleanup-fn)
|
(funcall cleanup-fn)
|
||||||
(if (setq window (avy-mouse-event-window char))
|
(if (setq window (avy-mouse-event-window char))
|
||||||
(throw 'done (cons char window))
|
(throw 'done (cons char window))
|
||||||
|
(if (setq branch (assoc char tree))
|
||||||
|
(progn
|
||||||
;; Ensure avy-current-path stores the full path prior to
|
;; Ensure avy-current-path stores the full path prior to
|
||||||
;; exit so other packages can utilize its value.
|
;; exit so other packages can utilize its value.
|
||||||
(setq avy-current-path
|
(setq avy-current-path
|
||||||
(concat avy-current-path (string (avy--key-to-char char))))
|
(concat avy-current-path (string (avy--key-to-char char))))
|
||||||
(if (setq branch (assoc char tree))
|
|
||||||
(if (eq (car (setq tree (cdr branch))) 'leaf)
|
(if (eq (car (setq tree (cdr branch))) 'leaf)
|
||||||
(throw 'done (cdr tree)))
|
(throw 'done (cdr tree))))
|
||||||
(funcall avy-handler-function char)))))))
|
(funcall avy-handler-function char)))))))
|
||||||
|
|
||||||
(defun avy-read-de-bruijn (lst keys)
|
(defun avy-read-de-bruijn (lst keys)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user