aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-09-13 13:57:36 +0200
committerGitHub <noreply@github.com>2021-09-13 04:57:36 -0700
commitd5b66e88601b4d2fde5d905f9d12847126ba4449 (patch)
tree00c6438d206a6a7f1928e2f6d05e5e0c5a5d1a96 /src/nvim/syntax.c
parentb9d57fa107a456596e68d2ee3853ba75142a6930 (diff)
downloadrneovim-d5b66e88601b4d2fde5d905f9d12847126ba4449.tar.gz
rneovim-d5b66e88601b4d2fde5d905f9d12847126ba4449.tar.bz2
rneovim-d5b66e88601b4d2fde5d905f9d12847126ba4449.zip
refactor: replace TRUE/FALSE with true/false #15647
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index 77d2b21a7a..49e451062c 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -5743,9 +5743,8 @@ void ex_ownsyntax(exarg_T *eap)
old_value = vim_strsave(old_value);
}
- /* Apply the "syntax" autocommand event, this finds and loads the syntax
- * file. */
- apply_autocmds(EVENT_SYNTAX, eap->arg, curbuf->b_fname, TRUE, curbuf);
+ // Apply the "syntax" autocommand event, this finds and loads the syntax file.
+ apply_autocmds(EVENT_SYNTAX, eap->arg, curbuf->b_fname, true, curbuf);
// Move value of b:current_syntax to w:current_syntax.
new_value = get_var_value("b:current_syntax");
@@ -6604,7 +6603,7 @@ int load_colors(char_u *name)
retval = source_runtime(buf, DIP_START + DIP_OPT);
}
xfree(buf);
- apply_autocmds(EVENT_COLORSCHEME, name, curbuf->b_fname, FALSE, curbuf);
+ apply_autocmds(EVENT_COLORSCHEME, name, curbuf->b_fname, false, curbuf);
recursive = false;