diff options
author | ZyX <kp-pav@yandex.ru> | 2017-02-14 00:12:57 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-29 10:08:44 +0300 |
commit | 506b938947b7083fc8bef20eabc08ed033298add (patch) | |
tree | 5b63f03d0fdc3cc1cfa3832d23dc2cc9c25dd4cb /src/nvim/ex_cmds2.c | |
parent | 3025431c81daac873e69a71aee695ebfd00504f7 (diff) | |
download | rneovim-506b938947b7083fc8bef20eabc08ed033298add.tar.gz rneovim-506b938947b7083fc8bef20eabc08ed033298add.tar.bz2 rneovim-506b938947b7083fc8bef20eabc08ed033298add.zip |
*: Make some more things const and with length
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index b84834d351..213641667d 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -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); } } } |