When I try to move a region in buffer A to buffer B, avy does not move the selected region in buffer A to B. Instead, it move the region to the cursor position in buffer A. Since avy-move-line can work in this scenario, I assume this is a bug in avy-move-region.
I can reproduce this issue with emacs -Q
Steps to reproduce:
Step 1:
I want to move two aaaaaaa lines from src to desc, while my cursor is focused in desc buffer
Step2:
Call avy-move-region, then press g, h
What happen:
The lines got moved to the top of the src buffer, where the cursor was at.
What I expcet:
The lines should get moved to the desc buffer, something like this:
When I try to move a region in buffer A to buffer B, avy does not move the selected region in buffer A to B. Instead, it move the region to the cursor position in buffer A. Since
avy-move-line
can work in this scenario, I assume this is a bug inavy-move-region
.I can reproduce this issue with
emacs -Q
Steps to reproduce:
Step 1: I want to move two
aaaaaaa
lines fromsrc
todesc
, while my cursor is focused indesc
buffer Step2: Callavy-move-region
, then pressg
,h
What happen:
The lines got moved to the top of the
src
buffer, where the cursor was at.What I expcet:
The lines should get moved to the
desc
buffer, something like this: