0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.673

Problem:    Using "gN" while 'selection' is "exclusive" misses one character.
            (Ben Fritz)
Solution:   Check the direction when compensating for exclusive selection.
            (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2012-10-03 13:35:51 +02:00
parent d09acef44b
commit 718f007499
2 changed files with 11 additions and 2 deletions

View File

@@ -4650,8 +4650,15 @@ current_search(count, forward)
if (VIsual_active)
{
redraw_curbuf_later(INVERTED); /* update the inversion */
if (*p_sel == 'e' && ltoreq(VIsual, curwin->w_cursor))
inc_cursor();
if (*p_sel == 'e')
{
/* Correction for exclusive selection depends on the direction. */
if (forward && ltoreq(VIsual, curwin->w_cursor))
inc_cursor();
else if (!forward && ltoreq(curwin->w_cursor, VIsual))
inc(&VIsual);
}
}
#ifdef FEAT_FOLDING

View File

@@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
673,
/**/
672,
/**/