forked from aniani/vim
updated for version 7.4.454
Problem: When using a Visual selection of multiple words and doing CTRL-W_] it jumps to the tag matching the word under the cursor, not the selected text. (Patrick hemmer) Solution: Do not reset Visual mode. (idea by Christian Brabandt)
This commit is contained in:
parent
91e15e13da
commit
d355c50a2a
@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
454,
|
||||||
/**/
|
/**/
|
||||||
453,
|
453,
|
||||||
/**/
|
/**/
|
||||||
|
@ -479,14 +479,15 @@ newwindow:
|
|||||||
case ']':
|
case ']':
|
||||||
case Ctrl_RSB:
|
case Ctrl_RSB:
|
||||||
CHECK_CMDWIN
|
CHECK_CMDWIN
|
||||||
reset_VIsual_and_resel(); /* stop Visual mode */
|
/* keep Visual mode, can select words to use as a tag */
|
||||||
if (Prenum)
|
if (Prenum)
|
||||||
postponed_split = Prenum;
|
postponed_split = Prenum;
|
||||||
else
|
else
|
||||||
postponed_split = -1;
|
postponed_split = -1;
|
||||||
|
g_do_tagpreview = 0;
|
||||||
|
|
||||||
/* Execute the command right here, required when
|
/* Execute the command right here, required when "wincmd ]"
|
||||||
* "wincmd ]" was used in a function. */
|
* was used in a function. */
|
||||||
do_nv_ident(Ctrl_RSB, NUL);
|
do_nv_ident(Ctrl_RSB, NUL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -590,7 +591,7 @@ wingotofile:
|
|||||||
#endif
|
#endif
|
||||||
case ']':
|
case ']':
|
||||||
case Ctrl_RSB:
|
case Ctrl_RSB:
|
||||||
reset_VIsual_and_resel(); /* stop Visual mode */
|
/* keep Visual mode, can select words to use as a tag */
|
||||||
if (Prenum)
|
if (Prenum)
|
||||||
postponed_split = Prenum;
|
postponed_split = Prenum;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user