abo-abo/avy

avy-transpose-lines-in-region doesn’t work when viewing two different files in side-by-side windows

Opened this issue · 1 comments

Steps to reproduce:

emacs -Q
M-: (load-file "~/Q/avy.el") RET
Press C-x 3 to split window vertically
In the newly opened window, visit a different file. In my case, I visited avy.el.
Select several lines in avy.el and execute: M-: (avy-transpose-lines-in-region) RET
This yields an error, e.g., Args out of range: 1, 422

A much less important but noticeable issue is that if you execute avy-transpose-lines-in-region when you have the same file open in the split windows (e.g., the Scratch buffer in both windows), you will get candidates showing up in in both windows instead of just the currently active window.

Thank you so much for this wonderful package!

I met the same problem