summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-09-23 13:48:43 +0200
committerBram Moolenaar <Bram@vim.org>2014-09-23 13:48:43 +0200
commitd355c50a2a07eaec87729d405553e15e5e680ca0 (patch)
tree4ffc3252b44b1a2f28ac142f4ffd8df80a56aa0a
parent91e15e13da0ec7825111133f0342288a47368d6e (diff)
downloadvim-git-7.4.454.tar.gz
updated for version 7.4.454v7.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)
-rw-r--r--src/version.c2
-rw-r--r--src/window.c9
2 files changed, 7 insertions, 4 deletions
diff --git a/src/version.c b/src/version.c
index 7727401da..1069c0b01 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 454,
+/**/
453,
/**/
452,
diff --git a/src/window.c b/src/window.c
index 0088e3264..4bc2e6c41 100644
--- a/src/window.c
+++ b/src/window.c
@@ -479,14 +479,15 @@ newwindow:
case ']':
case Ctrl_RSB:
CHECK_CMDWIN
- reset_VIsual_and_resel(); /* stop Visual mode */
+ /* keep Visual mode, can select words to use as a tag */
if (Prenum)
postponed_split = Prenum;
else
postponed_split = -1;
+ g_do_tagpreview = 0;
- /* Execute the command right here, required when
- * "wincmd ]" was used in a function. */
+ /* Execute the command right here, required when "wincmd ]"
+ * was used in a function. */
do_nv_ident(Ctrl_RSB, NUL);
break;
@@ -590,7 +591,7 @@ wingotofile:
#endif
case ']':
case Ctrl_RSB:
- reset_VIsual_and_resel(); /* stop Visual mode */
+ /* keep Visual mode, can select words to use as a tag */
if (Prenum)
postponed_split = Prenum;
else