Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kings2u opened this issue Jun 14, 2021 · 1 comment

Comments

@kings2u
Copy link

kings2u commented Jun 14, 2021

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
Copy link

I met the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants