Mercurial > vim
comparison src/ex_cmds.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 | 5278e5a2a4e3 |
children | c75da1064e33 |
comparison
equal
deleted
inserted
replaced
17651:826360df7aff | 17652:9efb4dda9720 |
---|---|
3898 ex_may_print(eap); | 3898 ex_may_print(eap); |
3899 } | 3899 } |
3900 | 3900 |
3901 if (!cmdmod.keeppatterns) | 3901 if (!cmdmod.keeppatterns) |
3902 save_re_pat(RE_SUBST, pat, p_magic); | 3902 save_re_pat(RE_SUBST, pat, p_magic); |
3903 #ifdef FEAT_CMDHIST | 3903 // put pattern in history |
3904 /* put pattern in history */ | |
3905 add_to_history(HIST_SEARCH, pat, TRUE, NUL); | 3904 add_to_history(HIST_SEARCH, pat, TRUE, NUL); |
3906 #endif | |
3907 | 3905 |
3908 return; | 3906 return; |
3909 } | 3907 } |
3910 | 3908 |
3911 /* | 3909 /* |