diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-10-07 18:39:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 18:39:27 +0200 |
commit | 684299ed4c9c21f0353ceaec2d1679f956617737 (patch) | |
tree | 6c041d17da377f9f5c691ffda778002aa78cbc0f /src/nvim/option.c | |
parent | b55944e8af870e1132be8353070536dd17383852 (diff) | |
parent | 6d9dea42012fa9ae42832f12c9fd457003cb196f (diff) | |
download | rneovim-684299ed4c9c21f0353ceaec2d1679f956617737.tar.gz rneovim-684299ed4c9c21f0353ceaec2d1679f956617737.tar.bz2 rneovim-684299ed4c9c21f0353ceaec2d1679f956617737.zip |
Merge pull request #15941 from dundargoc/refactor/remove-redundant-casts
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 |