aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-06-07 13:07:02 +0900
committererw7 <erw7.github@gmail.com>2019-06-09 13:28:10 +0900
commit1fbc01f4ab7c652b26f96fe19936f5f8e1f38e45 (patch)
treeb238b08f9f891cc0e30c9c6069a51fd61731ca10 /src/nvim/option.c
parent2d6e44087734a39b5e0f2789bcd68e1a4526955f (diff)
downloadrneovim-1fbc01f4ab7c652b26f96fe19936f5f8e1f38e45.tar.gz
rneovim-1fbc01f4ab7c652b26f96fe19936f5f8e1f38e45.tar.bz2
rneovim-1fbc01f4ab7c652b26f96fe19936f5f8e1f38e45.zip
Fix problems with message catalog directory
- In appimage, the message catalog is not used because there is no message catalog in LOCALE_INSTALL_DIR. Therefore, change to exepath/../share/locale instead of LOCALE_INSTALL_DIR. - The old vim style($runtime/lang) is no longer used. Thus all relevant code is removed.
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index fde1116cc9..8ff62d5b12 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -2598,11 +2598,11 @@ did_set_string_option(
} else if (varp == &p_hf) { // 'helpfile'
// May compute new values for $VIM and $VIMRUNTIME
if (didset_vim) {
- vim_setenv("VIM", "");
+ os_setenv("VIM", "", 1);
didset_vim = false;
}
if (didset_vimruntime) {
- vim_setenv("VIMRUNTIME", "");
+ os_setenv("VIMRUNTIME", "", 1);
didset_vimruntime = false;
}
} else if (varp == &curwin->w_p_cc) { // 'colorcolumn'
@@ -6744,7 +6744,7 @@ void vimrc_found(char_u *fname, char_u *envname)
// Set $MYVIMRC to the first vimrc file found.
p = FullName_save((char *)fname, false);
if (p != NULL) {
- vim_setenv((char *)envname, p);
+ os_setenv((char *)envname, p, 1);
xfree(p);
}
} else {