aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonerover <pathfinder1644@yahoo.com>2017-03-22 08:37:02 +0800
committerlonerover <pathfinder1644@yahoo.com>2017-03-22 15:36:10 +0800
commit114a18b93588c7d5238fe66a77dc0f94a2ba5500 (patch)
tree6f8f32dd0d9e969db51dc09ce4435d5a6e3344b7
parentc554b53040e9fea2dce343eb11178a3352d5e8da (diff)
downloadrneovim-114a18b93588c7d5238fe66a77dc0f94a2ba5500.tar.gz
rneovim-114a18b93588c7d5238fe66a77dc0f94a2ba5500.tar.bz2
rneovim-114a18b93588c7d5238fe66a77dc0f94a2ba5500.zip
vim-patch:7.4.2303
Problem: When using "is" the mode isn't always updated. Solution: Redraw the command line. (Christian Brabandt) https://github.com/vim/vim/commit/779f2fc3a7468e273897d2fd0672315812a2e3da
-rw-r--r--src/nvim/search.c3
-rw-r--r--src/nvim/version.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index ba6c4e6548..75862e1136 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -3028,7 +3028,8 @@ extend:
++curwin->w_cursor.col;
VIsual = start_pos;
VIsual_mode = 'v';
- redraw_curbuf_later(INVERTED); /* update the inversion */
+ redraw_cmdline = true; // show mode later
+ redraw_curbuf_later(INVERTED); // update the inversion
} else {
/* include a newline after the sentence, if there is one */
if (incl(&curwin->w_cursor) == -1)
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 1f2c8d12f5..ccd7fd21d9 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -138,7 +138,7 @@ static int included_patches[] = {
// 2306,
2305,
// 2304 NA
- // 2303,
+ 2303,
// 2302 NA
// 2301 NA
2300,