1
0
forked from aniani/vim

updated for version 7.4.155

Problem:    ":keeppatterns /pat" does not keep search pattern offset.
Solution:   Restore the offset after doing the search.
This commit is contained in:
Bram Moolenaar
2014-01-14 21:31:34 +01:00
parent 8822a9c367
commit ac8400d483
4 changed files with 8 additions and 2 deletions

View File

@@ -1437,7 +1437,7 @@ do_search(oap, dirc, pat, count, options, tm)
curwin->w_set_curswant = TRUE;
end_do_search:
if (options & SEARCH_KEEP)
if ((options & SEARCH_KEEP) || cmdmod.keeppatterns)
spats[0].off = old_off;
vim_free(strcopy);