Mercurial > vim
diff src/ex_docmd.c @ 17652:9efb4dda9720
patch 8.1.1823: command line history code is spread out
commit https://github.com/vim/vim/commit/d7663c22c6c1ff0f86b81371586fbc851d3a3e9e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 6 21:59:57 2019 +0200
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 https://github.com/vim/vim/issues/4779)
Also graduate the +cmdline_hist feature.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 06 Aug 2019 22:00:08 +0200 |
parents | a1437b8f2fac |
children | 10696f279e20 |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -356,9 +356,6 @@ static void ex_folddo(exarg_T *eap); # define ex_nbstart ex_ni #endif -#ifndef FEAT_CMDHIST -# define ex_history ex_ni -#endif #ifndef FEAT_JUMPLIST # define ex_jumps ex_ni # define ex_clearjumps ex_ni @@ -985,7 +982,7 @@ do_cmdline( if (next_cmdline == NULL) { VIM_CLEAR(cmdline_copy); -#ifdef FEAT_CMDHIST + /* * If the command was typed, remember it for the ':' register. * Do this AFTER executing the command to make :@: work. @@ -997,7 +994,6 @@ do_cmdline( last_cmdline = new_last_cmdline; new_last_cmdline = NULL; } -#endif } else { @@ -4130,12 +4126,10 @@ set_one_cmd_context( xp->xp_pattern = arg; break; -#if defined(FEAT_CMDHIST) case CMD_history: xp->xp_context = EXPAND_HISTORY; xp->xp_pattern = arg; break; -#endif #if defined(FEAT_PROFILE) case CMD_syntime: xp->xp_context = EXPAND_SYNTIME;