1
0
forked from aniani/vim

updated for version 7.4.150

Problem:    :keeppatterns is not respected for :s.
Solution:   Check the keeppatterns flag. (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar
2014-01-14 15:53:51 +01:00
parent 6d977d6c1c
commit 14177b77bf
4 changed files with 16 additions and 1 deletions

View File

@@ -201,7 +201,7 @@ search_regcomp(pat, pat_save, pat_use, options, regmatch)
* Save the currently used pattern in the appropriate place,
* unless the pattern should not be remembered.
*/
if (!(options & SEARCH_KEEP))
if (!(options & SEARCH_KEEP) && !cmdmod.keeppatterns)
{
/* search or global command */
if (pat_save == RE_SEARCH || pat_save == RE_BOTH)