summaryrefslogtreecommitdiff
path: root/src/misc2.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/misc2.c
parent0acae7acc40b9f12bff88d5e1dae494a761fec07 (diff)
downloadvim-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/misc2.c')
-rw-r--r--src/misc2.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/misc2.c b/src/misc2.c
index f5284c314..eb6cf5543 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1139,16 +1139,12 @@ free_all_mem(void)
vim_regfree(clip_exclude_prog);
# endif
vim_free(last_cmdline);
-# ifdef FEAT_CMDHIST
vim_free(new_last_cmdline);
-# endif
set_keep_msg(NULL, 0);
/* Clear cmdline history. */
p_hi = 0;
-# ifdef FEAT_CMDHIST
init_history();
-# endif
# ifdef FEAT_TEXT_PROP
clear_global_prop_types();
# endif