aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-02-14 00:12:57 +0300
committerZyX <kp-pav@yandex.ru>2017-03-29 10:08:44 +0300
commit506b938947b7083fc8bef20eabc08ed033298add (patch)
tree5b63f03d0fdc3cc1cfa3832d23dc2cc9c25dd4cb /src/nvim/option.c
parent3025431c81daac873e69a71aee695ebfd00504f7 (diff)
downloadrneovim-506b938947b7083fc8bef20eabc08ed033298add.tar.gz
rneovim-506b938947b7083fc8bef20eabc08ed033298add.tar.bz2
rneovim-506b938947b7083fc8bef20eabc08ed033298add.zip
*: Make some more things const and with length
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 8a80c46cf2..9b31e14ea7 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -2582,7 +2582,7 @@ did_set_string_option (
// The color scheme must have set 'background' back to another
// value, that's not what we want here. Disable the color
// scheme and set the colors again.
- do_unlet((char_u *)"g:colors_name", true);
+ do_unlet(S_LEN("g:colors_name"), true);
free_string_option(p_bg);
p_bg = vim_strsave((char_u *)(dark ? "dark" : "light"));
check_string_option(&p_bg);