1
0
forked from aniani/vim

patch 8.0.1304: CTRL-G/CTRL-T don't work with incsearch and empty pattern

Problem:    CTRL-G/CTRL-T don't work with incsearch and empty pattern.
Solution:   Use the last search pattern. (Christian Brabandt, closes #2292)
This commit is contained in:
Bram Moolenaar
2017-11-16 22:20:39 +01:00
parent 9c6ce0e622
commit d048009717
5 changed files with 26 additions and 2 deletions

View File

@@ -393,6 +393,12 @@ restore_last_search_pattern(void)
last_idx = saved_last_idx;
SET_NO_HLSEARCH(saved_no_hlsearch);
}
char_u *
last_search_pattern(void)
{
return spats[RE_SEARCH].pat;
}
#endif
/*