mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
refactor: remove redundant casts
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user