From 4afd8f92ae865edc0d48181bbe774731a42da473 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 23 Sep 2014 23:13:09 +0200 Subject: vim-patch: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) https://code.google.com/p/vim/source/detail?r=0cdff7c268559f8f34eae073a013ece71b62b9e3 --- src/nvim/window.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/nvim/window.c b/src/nvim/window.c index ebce53cdf4..fbb283899b 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -364,14 +364,16 @@ newwindow: /*FALLTHROUGH*/ case ']': case Ctrl_RSB: - CHECK_CMDWIN reset_VIsual_and_resel(); /* stop Visual mode */ + CHECK_CMDWIN + // 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; @@ -457,7 +459,7 @@ wingotofile: /*FALLTHROUGH*/ 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 -- cgit From 28429ffbf0184a79ed0b0f8e94269bbb812bfd8e Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 23 Sep 2014 23:14:14 +0200 Subject: Update version.c to 7.4.454 --- src/nvim/version.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/nvim/version.c b/src/nvim/version.c index 38d123c644..cc1d5abc3f 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -184,6 +184,19 @@ static char *(features[]) = { }; static int included_patches[] = { + //457, + //456, + //455, + 454, + //453, + //452, + //451, + //450, + //449, + //448, + //447, + //446, + //445, //444, //443, //442, -- cgit