forked from aniani/vim
patch 9.1.1175: inconsistent behaviour with exclusive selection and motion commands
Problem: inconsistent behaviour with exclusive selection and motion commands (aidancz) Solution: adjust cursor position when selection is exclusive (Jim Zhou) fixes: #16278 closes: #16784 Co-authored-by: Hirohito Higashi <h.east.727@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Jim Zhou <jimzhouzzy@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
b34ce3e205
commit
c8cce711dd
@@ -502,6 +502,12 @@ end_word(
|
||||
|
||||
curwin->w_cursor.coladd = 0;
|
||||
cls_bigword = bigword;
|
||||
|
||||
// If adjusted cursor position previously, unadjust it.
|
||||
if (*p_sel == 'e' && VIsual_active && VIsual_mode == 'v'
|
||||
&& VIsual_select_exclu_adj)
|
||||
unadjust_for_sel();
|
||||
|
||||
while (--count >= 0)
|
||||
{
|
||||
#ifdef FEAT_FOLDING
|
||||
|
Reference in New Issue
Block a user