abo-abo / avy

Jump to things in Emacs tree-style
1.7k stars 108 forks source link

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

Open kings2u opened 3 years ago

kings2u commented 3 years ago

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!

pointerto commented 7 months ago

I met the same problem