mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +00:00
parent
034de4c0e9
commit
5127f993f9
7
avy.el
7
avy.el
@ -451,7 +451,8 @@ KEYS is the path from the root of `avy-tree' to LEAF."
|
|||||||
"The default handler for a bad CHAR."
|
"The default handler for a bad CHAR."
|
||||||
(let (dispatch)
|
(let (dispatch)
|
||||||
(cond ((setq dispatch (assoc char avy-dispatch-alist))
|
(cond ((setq dispatch (assoc char avy-dispatch-alist))
|
||||||
(setq avy-action (cdr dispatch))
|
(unless (eq avy-style 'words)
|
||||||
|
(setq avy-action (cdr dispatch)))
|
||||||
(throw 'done 'restart))
|
(throw 'done 'restart))
|
||||||
((memq char '(?\e ?\C-g))
|
((memq char '(?\e ?\C-g))
|
||||||
;; exit silently
|
;; exit silently
|
||||||
@ -862,8 +863,10 @@ multiple OVERLAY-FN invocations."
|
|||||||
(res (avy--process-1 candidates overlay-fn cleanup-fn)))
|
(res (avy--process-1 candidates overlay-fn cleanup-fn)))
|
||||||
(cond
|
(cond
|
||||||
((null res)
|
((null res)
|
||||||
|
(if (eq avy-style 'words)
|
||||||
|
(avy-process original-cands overlay-fn cleanup-fn)
|
||||||
(message "zero candidates")
|
(message "zero candidates")
|
||||||
t)
|
t))
|
||||||
((eq res 'restart)
|
((eq res 'restart)
|
||||||
(avy-process original-cands overlay-fn cleanup-fn))
|
(avy-process original-cands overlay-fn cleanup-fn))
|
||||||
;; ignore exit from `avy-handler-function'
|
;; ignore exit from `avy-handler-function'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user