mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
*: Make some more things const and with length
This commit is contained in:
@@ -2256,8 +2256,8 @@ void ex_compiler(exarg_T *eap)
|
||||
}
|
||||
do_cmdline_cmd("command -nargs=* CompilerSet setlocal <args>");
|
||||
}
|
||||
do_unlet((char_u *)"g:current_compiler", true);
|
||||
do_unlet((char_u *)"b:current_compiler", true);
|
||||
do_unlet(S_LEN("g:current_compiler"), true);
|
||||
do_unlet(S_LEN("b:current_compiler"), true);
|
||||
|
||||
snprintf((char *)buf, bufsize, "compiler/%s.vim", eap->arg);
|
||||
if (source_runtime(buf, DIP_ALL) == FAIL) {
|
||||
@@ -2280,7 +2280,7 @@ void ex_compiler(exarg_T *eap)
|
||||
old_cur_comp);
|
||||
xfree(old_cur_comp);
|
||||
} else {
|
||||
do_unlet((char_u *)"g:current_compiler", true);
|
||||
do_unlet(S_LEN("g:current_compiler"), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user