diff options
author | Dundar Göc <gocdundar@gmail.com> | 2021-10-07 11:17:02 +0200 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2021-10-07 13:16:55 +0200 |
commit | 6d9dea42012fa9ae42832f12c9fd457003cb196f (patch) | |
tree | 1aecf23386c01c10856489158e1f8ba798377356 /src/nvim/option.c | |
parent | c61a3865eea21f87ac17719ba226ad556b5a11a6 (diff) | |
download | rneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.tar.gz rneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.tar.bz2 rneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.zip |
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 5646a62cd4..b60699b66f 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -3899,7 +3899,7 @@ static char *set_bool_option(const int opt_idx, char_u *const varp, const int va // when 'buflisted' changes, trigger autocommands apply_autocmds(curbuf->b_p_bl ? EVENT_BUFADD : EVENT_BUFDELETE, NULL, NULL, true, curbuf); - } else if ((int *)varp == (int *)&curbuf->b_p_swf) { + } else if ((int *)varp == &curbuf->b_p_swf) { // when 'swf' is set, create swapfile, when reset remove swapfile if (curbuf->b_p_swf && p_uc) { ml_open_file(curbuf); // create the swap file |