mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 9.1.0938: exclusive selection not respected when re-selecting block mode
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: #16202 closes: #16219 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -5518,6 +5518,8 @@ nv_visual(cmdarg_T *cap)
|
||||
update_curswant_force();
|
||||
curwin->w_curswant += resel_VIsual_vcol * cap->count0 - 1;
|
||||
curwin->w_cursor.lnum = lnum;
|
||||
if (*p_sel == 'e')
|
||||
++curwin->w_curswant;
|
||||
coladvance(curwin->w_curswant);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user