mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +00:00
Fix overlays at end-of-line with visual-line-mode
* avy.el (avy--overlay-at-full): Update. Fixes #112
This commit is contained in:
parent
dddce37cdd
commit
9ae44133ca
5
avy.el
5
avy.el
@ -759,7 +759,10 @@ LEAF is normally ((BEG . END) . WND)."
|
||||
(when (and (bound-and-true-p visual-line-mode)
|
||||
(> len (- end beg)))
|
||||
(setq len (- end beg))
|
||||
(setq str (substring str 0 len))))))
|
||||
(setq str
|
||||
(substring (propertize
|
||||
(apply #'string (reverse path))
|
||||
'face 'avy-lead-face) 0 len))))))
|
||||
(avy--overlay
|
||||
str beg end wnd
|
||||
(lambda (str old-str)
|
||||
|
Loading…
x
Reference in New Issue
Block a user