avy
avy copied to clipboard
'at-full incompatible with visual-line-mode when truncate-lines is true
trafficstars
Steps to reproduce:
echo " Arizona: Scheduled: TODO [#C] Buy blue books for logic exams :UA::@campus:" > ~/fooemacs -QM-: (load-file "~/tmp/avy/avy.el") RETM-: (setq-default visual-line-mode t) RETM-: (setq avy-style 'at-full) RETM-x find-file RET ~/foo RETM-x toggle-truncate-lines RET- Shrink frame so that the end of the line is cut off
M-x avy-goto-word-1 RET c RET
Result:
setq: Args out of range: #("s" 0 1 (face avy-lead-face)), 0, -15
I believe that commit dddce37c introduced this problem, but the above was reproduced against the current git HEAD, 0f5e99b5.
Thanks.
I couldn't reproduce it with your scenario, but I think I know where the error was. Please check if this fixes it.
It seems to with a little ad-hoc testing -- thanks!