avy icon indicating copy to clipboard operation
avy copied to clipboard

'at-full incompatible with visual-line-mode when truncate-lines is true

Open spwhitton opened this issue 8 years ago • 2 comments
trafficstars

Steps to reproduce:

  1. echo " Arizona: Scheduled: TODO [#C] Buy blue books for logic exams :UA::@campus:" > ~/foo
  2. emacs -Q
  3. M-: (load-file "~/tmp/avy/avy.el") RET
  4. M-: (setq-default visual-line-mode t) RET
  5. M-: (setq avy-style 'at-full) RET
  6. M-x find-file RET ~/foo RET
  7. M-x toggle-truncate-lines RET
  8. Shrink frame so that the end of the line is cut off
  9. 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.

spwhitton avatar Feb 07 '17 16:02 spwhitton

I couldn't reproduce it with your scenario, but I think I know where the error was. Please check if this fixes it.

abo-abo avatar Feb 08 '17 09:02 abo-abo

It seems to with a little ad-hoc testing -- thanks!

spwhitton avatar Feb 08 '17 13:02 spwhitton