comparison src/option.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 892b4ea3bad6
children c75da1064e33
comparison
equal deleted inserted replaced
17651:826360df7aff 17652:9efb4dda9720
6743 6743
6744 #if defined(FEAT_CRYPT) 6744 #if defined(FEAT_CRYPT)
6745 /* 'cryptkey' */ 6745 /* 'cryptkey' */
6746 else if (gvarp == &p_key) 6746 else if (gvarp == &p_key)
6747 { 6747 {
6748 # if defined(FEAT_CMDHIST) 6748 // Make sure the ":set" command doesn't show the new value in the
6749 /* Make sure the ":set" command doesn't show the new value in the 6749 // history.
6750 * history. */
6751 remove_key_from_history(); 6750 remove_key_from_history();
6752 # endif 6751
6753 if (STRCMP(curbuf->b_p_key, oldval) != 0) 6752 if (STRCMP(curbuf->b_p_key, oldval) != 0)
6754 /* Need to update the swapfile. */ 6753 /* Need to update the swapfile. */
6755 ml_set_crypt_key(curbuf, oldval, 6754 ml_set_crypt_key(curbuf, oldval,
6756 *curbuf->b_p_cm == NUL ? p_cm : curbuf->b_p_cm); 6755 *curbuf->b_p_cm == NUL ? p_cm : curbuf->b_p_cm);
6757 } 6756 }