diff options
author | Mark Bainter <mbainter+github@gmail.com> | 2015-04-13 02:17:20 +0000 |
---|---|---|
committer | Mark Bainter <mbainter+github@gmail.com> | 2015-04-18 04:51:58 +0000 |
commit | 78c77e8555f1e208bfce21ec15c943adaf904b8c (patch) | |
tree | 920998ef9966b8188256a927081e3775dce72aa5 | |
parent | a4e51f72ab5dac1149b415c6fc0bf1c87a11acda (diff) | |
download | rneovim-78c77e8555f1e208bfce21ec15c943adaf904b8c.tar.gz rneovim-78c77e8555f1e208bfce21ec15c943adaf904b8c.tar.bz2 rneovim-78c77e8555f1e208bfce21ec15c943adaf904b8c.zip |
Remove char_u: set_helplang_default()
-rw-r--r-- | src/nvim/option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 6da0058c1a..2306bc89ab 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -2039,7 +2039,7 @@ void set_init_1(void) } /* Set the default for 'helplang'. */ - set_helplang_default(get_mess_lang()); + set_helplang_default((char *)get_mess_lang()); } /* @@ -2298,7 +2298,7 @@ void set_helplang_default(const char *lang) if (idx >= 0 && !(options[idx].flags & P_WAS_SET)) { if (options[idx].flags & P_ALLOCED) free_string_option(p_hlg); - p_hlg = vim_strsave(lang); + p_hlg = (char_u *)xstrdup(lang); /* zh_CN becomes "cn", zh_TW becomes "tw". */ if (STRNICMP(p_hlg, "zh_", 3) == 0 && STRLEN(p_hlg) >= 5) { p_hlg[0] = (char_u)TOLOWER_ASC(p_hlg[3]); |