mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
Fix De Bruijn "No catch for tag" error
When using avy-goto-line and typing a line number with avy-style de-bruijn, you would get an error after entering your line number and pressing RET: No catch for tag: done, exit I believe this is because avy-read is wrapped with (catch 'done ...) but avy-read-de-bruijn doesn't catch done. This adds the catch to avy-read-de-bruijn.
This commit is contained in:
parent
f341c2f18f
commit
4a23a0d63e
3
avy.el
3
avy.el
@ -390,6 +390,7 @@ multiple DISPLAY-FN invokations."
|
||||
;; possible that the path-len must be incremented, e.g., if we're matching
|
||||
;; for x and a buffer contains xaxbxcx only every second subsequence is
|
||||
;; usable for the four matches.
|
||||
(catch 'done
|
||||
(let* ((path-len (ceiling (log (length lst) (length keys))))
|
||||
(alist (avy--path-alist-1 lst path-len keys)))
|
||||
(while (not alist)
|
||||
@ -414,7 +415,7 @@ multiple DISPLAY-FN invokations."
|
||||
(cl-incf i)
|
||||
(unless alist
|
||||
(funcall avy-handler-function char))))
|
||||
(cdar alist))))
|
||||
(cdar alist)))))
|
||||
|
||||
;;** Rest
|
||||
(defun avy-window-list ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user