From d7663c22c6c1ff0f86b81371586fbc851d3a3e9e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 6 Aug 2019 21:59:57 +0200 Subject: 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. --- src/ex_cmds.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ex_cmds.c') 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; } -- cgit v1.2.3