summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-09-06 21:44:17 +0200
committerBram Moolenaar <Bram@vim.org>2018-09-06 21:44:17 +0200
commit198cb66d652d3d8ac16226dcc929a11b0b720151 (patch)
tree23ab498998bff1956e3d4e658918843dc7566db0 /src/ex_docmd.c
parent0b1468884a2a1c5d3442cbb7119330e307f0aa3d (diff)
patch 8.1.0351: 'incsearch' for :/foo/s//<Esc> changes last search patternv8.1.0351
Problem: 'incsearch' for :/foo/s//<Esc> changes last search pattern. Solution: Save the last search pattern earlier.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 5b53785cc5..767791776e 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2911,6 +2911,7 @@ free_cmdmod(void)
/*
* Parse the address range, if any, in "eap".
+ * May set the last search pattern.
* Return FAIL and set "errormsg" or return OK.
*/
int
@@ -4436,10 +4437,11 @@ skip_range(
}
/*
- * get a single EX address
+ * Get a single EX address.
*
* Set ptr to the next character after the part that was interpreted.
* Set ptr to NULL when an error is encountered.
+ * This may set the last used search pattern.
*
* Return MAXLNUM when no Ex address was found.
*/