diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-10-14 23:48:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 23:48:42 +0200 |
commit | 5fd4557573c73a6b41b702b1ee39151b5bd7e5fd (patch) | |
tree | a61420011ff628034dbe33cdcc160d7eed6a94f7 /src/nvim/syntax.c | |
parent | 88e16a7f30b23c03c2207086f613190e685a67c3 (diff) | |
parent | 24a1880866b1b7f6cb74b7ac4fe9fbecd678bbe1 (diff) | |
download | rneovim-5fd4557573c73a6b41b702b1ee39151b5bd7e5fd.tar.gz rneovim-5fd4557573c73a6b41b702b1ee39151b5bd7e5fd.tar.bz2 rneovim-5fd4557573c73a6b41b702b1ee39151b5bd7e5fd.zip |
Merge pull request #16014 from dundargoc/refactor/reduce-char-casts
refactor: reduce number of unique char casts
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 2b5faee8de..ac4c81f6b3 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -4393,8 +4393,8 @@ static void syn_cmd_include(exarg_T *eap, int syncing) prev_toplvl_grp = curwin->w_s->b_syn_topgrp; curwin->w_s->b_syn_topgrp = sgl_id; if (source - ? do_source(eap->arg, false, DOSO_NONE) == FAIL - : source_runtime(eap->arg, DIP_ALL) == FAIL) { + ? do_source((char *)eap->arg, false, DOSO_NONE) == FAIL + : source_runtime((char *)eap->arg, DIP_ALL) == FAIL) { EMSG2(_(e_notopen), eap->arg); } curwin->w_s->b_syn_topgrp = prev_toplvl_grp; @@ -6616,10 +6616,10 @@ int load_colors(char_u *name) buf = xmalloc(buflen); apply_autocmds(EVENT_COLORSCHEMEPRE, name, curbuf->b_fname, false, curbuf); snprintf((char *)buf, buflen, "colors/%s.vim", name); - retval = source_runtime(buf, DIP_START + DIP_OPT); + retval = source_runtime((char *)buf, DIP_START + DIP_OPT); if (retval == FAIL) { snprintf((char *)buf, buflen, "colors/%s.lua", name); - retval = source_runtime(buf, DIP_START + DIP_OPT); + retval = source_runtime((char *)buf, DIP_START + DIP_OPT); } xfree(buf); apply_autocmds(EVENT_COLORSCHEME, name, curbuf->b_fname, false, curbuf); |