0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.1.0351: 'incsearch' for :/foo/s//<Esc> changes last search pattern

Problem:    'incsearch' for :/foo/s//<Esc> changes last search pattern.
Solution:   Save the last search pattern earlier.
This commit is contained in:
Bram Moolenaar
2018-09-06 21:44:17 +02:00
parent 0b1468884a
commit 198cb66d65
4 changed files with 43 additions and 3 deletions

View File

@@ -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.
*/