0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.1.1823: command line history code is spread out

Problem:    Command line history code is spread out.
Solution:   Put the code in a new file. (Yegappan Lakshmanan, closes #4779)
            Also graduate the +cmdline_hist feature.
This commit is contained in:
Bram Moolenaar
2019-08-06 21:59:57 +02:00
parent 0acae7acc4
commit d7663c22c6
26 changed files with 852 additions and 894 deletions

View File

@@ -3900,10 +3900,8 @@ do_sub(exarg_T *eap)
if (!cmdmod.keeppatterns)
save_re_pat(RE_SUBST, pat, p_magic);
#ifdef FEAT_CMDHIST
/* put pattern in history */
// put pattern in history
add_to_history(HIST_SEARCH, pat, TRUE, NUL);
#endif
return;
}