aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-08-30 19:54:14 +0800
committerckelsel <ckelsel@hotmail.com>2017-08-30 19:59:18 +0800
commit0e13b15fde1cc02cd1bb390d161cdc13afb96e39 (patch)
treebb1749d9685f433688b008268e4623dc3abdf987
parent5566f30006a73c30dfbdeece2e08830826d28aa4 (diff)
downloadrneovim-0e13b15fde1cc02cd1bb390d161cdc13afb96e39.tar.gz
rneovim-0e13b15fde1cc02cd1bb390d161cdc13afb96e39.tar.bz2
rneovim-0e13b15fde1cc02cd1bb390d161cdc13afb96e39.zip
vim-patch:8.0.0209
Problem: When using :substitute with the "c" flag and 'cursorbind' is set the cursor is not updated in other windows. Solution: Call do_check_cursorbind(). (Masanori Misono) https://github.com/vim/vim/commit/41baa7983aa81b0343b053e6a672cf8224a10245
-rw-r--r--src/nvim/ex_cmds.c4
-rw-r--r--src/nvim/version.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index a555fb77e8..32dbf4cc69 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -3500,6 +3500,10 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout)
setmouse(); /* disable mouse in xterm */
curwin->w_cursor.col = regmatch.startpos[0].col;
+ if (curwin->w_p_crb) {
+ do_check_cursorbind();
+ }
+
/* When 'cpoptions' contains "u" don't sync undo when
* asking for confirmation. */
if (vim_strchr(p_cpo, CPO_UNDO) != NULL)
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 53b44f8029..d7ebc26321 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -743,7 +743,7 @@ static const int included_patches[] = {
// 212,
// 211 NA
// 210,
- // 209,
+ 209,
208,
// 207,
// 206,