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:
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user