diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-05-18 17:37:15 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 17:37:15 -0600 |
commit | 6a2883c17159ce5026c1bae8f6ad53a7859f83e3 (patch) | |
tree | d33d8f59cf7e974b56643afababa46fb9f6cbb68 /src/nvim/option.c | |
parent | 18fbdaeeab4bc1ed19bd3d7b3a0c0ded9cf79d4e (diff) | |
parent | 97fc68850ff349a32f226117e04c37647966b2ff (diff) | |
download | rneovim-6a2883c17159ce5026c1bae8f6ad53a7859f83e3.tar.gz rneovim-6a2883c17159ce5026c1bae8f6ad53a7859f83e3.tar.bz2 rneovim-6a2883c17159ce5026c1bae8f6ad53a7859f83e3.zip |
Merge pull request #18630 from dundargoc/refactor/remove-remap
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 2ee6c175bb..61ac542fcf 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -4049,18 +4049,6 @@ static char *set_bool_option(const int opt_idx, char_u *const varp, const int va // buf->b_p_swf mf_close_file(curbuf, true); // remove the swap file } - } else if ((int *)varp == &p_terse) { - // when 'terse' is set change 'shortmess' - char *p = vim_strchr((char *)p_shm, SHM_SEARCH); - - // insert 's' in p_shm - if (p_terse && p == NULL) { - STRCPY(IObuff, p_shm); - STRCAT(IObuff, "s"); - set_string_option_direct("shm", -1, IObuff, OPT_FREE, 0); - } else if (!p_terse && p != NULL) { // remove 's' from p_shm - STRMOVE(p, p + 1); - } } else if ((int *)varp == &p_paste) { // when 'paste' is set or reset also change other options paste_option_changed(); |