mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +00:00
Fix 'at-full moving text for chars near end of visual line
* avy.el (avy--overlay-at-full): Update.
This commit is contained in:
parent
567570af41
commit
dddce37cdd
6
avy.el
6
avy.el
@ -755,7 +755,11 @@ LEAF is normally ((BEG . END) . WND)."
|
|||||||
(if (eq (char-after) ?\t)
|
(if (eq (char-after) ?\t)
|
||||||
1
|
1
|
||||||
len))
|
len))
|
||||||
lep))))))
|
lep)))
|
||||||
|
(when (and (bound-and-true-p visual-line-mode)
|
||||||
|
(> len (- end beg)))
|
||||||
|
(setq len (- end beg))
|
||||||
|
(setq str (substring str 0 len))))))
|
||||||
(avy--overlay
|
(avy--overlay
|
||||||
str beg end wnd
|
str beg end wnd
|
||||||
(lambda (str old-str)
|
(lambda (str old-str)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user