summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-06 21:59:57 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-06 21:59:57 +0200
commitd7663c22c6c1ff0f86b81371586fbc851d3a3e9e (patch)
tree3979ae5a710ae9ca6fa4dcecde113961eca54cc1 /src/ex_cmds.c
parent0acae7acc40b9f12bff88d5e1dae494a761fec07 (diff)
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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 98f5070bcb..282e6a0e97 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;
}