mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
vim-patch:8.2.4154: ml_get error when exchanging windows in Visual mode
Problem: ml_get error when exchanging windows in Visual mode.
Solution: Correct end of Visual area when entering another buffer.
05b2761548
This commit is contained in:
@@ -1727,6 +1727,12 @@ static void win_exchange(long Prenum)
|
||||
|
||||
(void)win_comp_pos(); // recompute window positions
|
||||
|
||||
if (wp->w_buffer != curbuf) {
|
||||
reset_VIsual_and_resel();
|
||||
} else if (VIsual_active) {
|
||||
wp->w_cursor = curwin->w_cursor;
|
||||
}
|
||||
|
||||
win_enter(wp, true);
|
||||
redraw_later(curwin, NOT_VALID);
|
||||
redraw_later(wp, NOT_VALID);
|
||||
|
Reference in New Issue
Block a user