diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-06 21:59:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-06 21:59:57 +0200 |
commit | d7663c22c6c1ff0f86b81371586fbc851d3a3e9e (patch) | |
tree | 3979ae5a710ae9ca6fa4dcecde113961eca54cc1 /src/ex_cmds.c | |
parent | 0acae7acc40b9f12bff88d5e1dae494a761fec07 (diff) | |
download | vim-git-d7663c22c6c1ff0f86b81371586fbc851d3a3e9e.tar.gz |
patch 8.1.1823: command line history code is spread outv8.1.1823
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.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 98f5070bc..282e6a0e9 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -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; } |