mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
Don't shorten selector string for visual-line-mode and bolp
* avy.el (avy--overlay-at-full): When at an empty line, there's plenty of space to display the full selector. No need to truncate it to avoid visual-line-mode reformatting the buffer text. Fixes #129
This commit is contained in:
parent
dd80749441
commit
212a132d5f
3
avy.el
3
avy.el
@ -771,7 +771,8 @@ LEAF is normally ((BEG . END) . WND)."
|
|||||||
len))
|
len))
|
||||||
lep)))
|
lep)))
|
||||||
(when (and (bound-and-true-p visual-line-mode)
|
(when (and (bound-and-true-p visual-line-mode)
|
||||||
(> len (- end beg)))
|
(> len (- end beg))
|
||||||
|
(not (eq lep beg)))
|
||||||
(setq len (- end beg))
|
(setq len (- end beg))
|
||||||
(let ((old-str (apply #'string (reverse path))))
|
(let ((old-str (apply #'string (reverse path))))
|
||||||
(setq str
|
(setq str
|
||||||
|
Loading…
x
Reference in New Issue
Block a user