Mercurial > vim
diff src/normal.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 | 827d29c8f7e8 |
children | 3dbff5d37520 |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -5736,11 +5736,11 @@ nv_ident(cmdarg_T *cap) ? vim_iswordp(mb_prevptr(ml_get_curline(), ptr)) : vim_iswordc(ptr[-1]))) STRCAT(buf, "\\>"); -#ifdef FEAT_CMDHIST - /* put pattern in search history */ + + // put pattern in search history init_history(); add_to_history(HIST_SEARCH, buf, TRUE, NUL); -#endif + (void)normal_search(cap, cmdchar == '*' ? '/' : '?', buf, 0); } else