diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-06 21:59:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-06 21:59:57 +0200 |
commit | d7663c22c6c1ff0f86b81371586fbc851d3a3e9e (patch) | |
tree | 3979ae5a710ae9ca6fa4dcecde113961eca54cc1 /src/option.c | |
parent | 0acae7acc40b9f12bff88d5e1dae494a761fec07 (diff) | |
download | vim-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/option.c')
-rw-r--r-- | src/option.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/option.c b/src/option.c index bf253a461..4ad558a3d 100644 --- a/src/option.c +++ b/src/option.c @@ -6745,11 +6745,10 @@ did_set_string_option( /* 'cryptkey' */ else if (gvarp == &p_key) { -# if defined(FEAT_CMDHIST) - /* Make sure the ":set" command doesn't show the new value in the - * history. */ + // Make sure the ":set" command doesn't show the new value in the + // history. remove_key_from_history(); -# endif + if (STRCMP(curbuf->b_p_key, oldval) != 0) /* Need to update the swapfile. */ ml_set_crypt_key(curbuf, oldval, |