aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-02-07 18:28:34 -0500
committerGitHub <noreply@github.com>2021-02-07 18:28:34 -0500
commit02a3c417945e7b7fc781906a78acbf88bd44c971 (patch)
tree16f255fcf66a50ceea661e08cbea7ce965c46e7c /src/nvim/ex_cmds2.c
parenta7d9df996dc1c353574845563216dc0372dd8b77 (diff)
parentd34846af7455b8411476700920cdb64f121bae69 (diff)
downloadrneovim-02a3c417945e7b7fc781906a78acbf88bd44c971.tar.gz
rneovim-02a3c417945e7b7fc781906a78acbf88bd44c971.tar.bz2
rneovim-02a3c417945e7b7fc781906a78acbf88bd44c971.zip
Merge pull request #13898 from janlazo/set_string_option_direct
Refactor option,var functions to use char for param type
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index e49bb99aa0..2598b13079 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -2375,13 +2375,13 @@ void ex_compiler(exarg_T *eap)
// Set "b:current_compiler" from "current_compiler".
p = get_var_value("g:current_compiler");
if (p != NULL) {
- set_internal_string_var((char_u *)"b:current_compiler", p);
+ set_internal_string_var("b:current_compiler", p);
}
// Restore "current_compiler" for ":compiler {name}".
if (!eap->forceit) {
if (old_cur_comp != NULL) {
- set_internal_string_var((char_u *)"g:current_compiler",
+ set_internal_string_var("g:current_compiler",
old_cur_comp);
xfree(old_cur_comp);
} else {