mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +00:00
avy.el (avy--overlay-pre): Fix conflict with visual-line-mode
This commit is contained in:
parent
509471bad0
commit
acf553cae2
5
avy.el
5
avy.el
@ -1068,6 +1068,9 @@ Do this even when the char is terminating."
|
||||
"Create an overlay with PATH at LEAF.
|
||||
PATH is a list of keys from tree root to LEAF.
|
||||
LEAF is normally ((BEG . END) . WND)."
|
||||
(if (with-selected-window (cdr leaf)
|
||||
(bound-and-true-p visual-line-mode))
|
||||
(avy--overlay-at-full path leaf)
|
||||
(let* ((path (mapcar #'avy--key-to-char path))
|
||||
(str (propertize (apply #'string (reverse path))
|
||||
'face 'avy-lead-face)))
|
||||
@ -1080,7 +1083,7 @@ LEAF is normally ((BEG . END) . WND)."
|
||||
(avy--overlay
|
||||
str
|
||||
(avy-candidate-beg leaf) nil
|
||||
(avy-candidate-wnd leaf))))
|
||||
(avy-candidate-wnd leaf)))))
|
||||
|
||||
(defun avy--overlay-at (path leaf)
|
||||
"Create an overlay with PATH at LEAF.
|
||||
|
Loading…
x
Reference in New Issue
Block a user