mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
vim-patch:9.1.0938: exclusive selection not respected when re-selecting block mode (#31603)
Problem: exclusive selection not respected when re-selecting block mode
(Matt Ellis)
Solution: advance selection by another character when using
selection=exclusive and visual block mode
fixes: vim/vim#16202
closes: vim/vim#16219
bb95589473
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -5038,6 +5038,9 @@ static void nv_visual(cmdarg_T *cap)
|
||||
assert(cap->count0 >= INT_MIN && cap->count0 <= INT_MAX);
|
||||
curwin->w_curswant += resel_VIsual_vcol * cap->count0 - 1;
|
||||
curwin->w_cursor.lnum = lnum;
|
||||
if (*p_sel == 'e') {
|
||||
curwin->w_curswant++;
|
||||
}
|
||||
coladvance(curwin, curwin->w_curswant);
|
||||
} else {
|
||||
curwin->w_set_curswant = true;
|
||||
|
Reference in New Issue
Block a user