diff options
author | erw7 <erw7.github@gmail.com> | 2020-09-08 14:40:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-07 22:40:12 -0700 |
commit | aa4557920696c45335f42f03e7b23b7038b5864e (patch) | |
tree | 9196fdfc30fcfca719d8ddf3bad32051646c67da /src/nvim/eval.c | |
parent | 6abbc157af0d94cf2f8840511a744422db382eae (diff) | |
download | rneovim-aa4557920696c45335f42f03e7b23b7038b5864e.tar.gz rneovim-aa4557920696c45335f42f03e7b23b7038b5864e.tar.bz2 rneovim-aa4557920696c45335f42f03e7b23b7038b5864e.zip |
win/env: fix stdpath()/XDG_* initialization, parsing #12829
- Windows environment variables are semicolon-separated, but some logic
was assuming colon (:). This broke initialization and parsing of
XDG_CONFIG_DIRS, XDG_DATA_DIRS, 'runtimepath', stdpath(), etc.
- test/defaults_spec: enable tests on Windows
ref #12793
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 21a5603b93..32830c5d7f 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -7075,7 +7075,7 @@ void get_xdg_var_list(const XDGVarType xdg, typval_T *rettv) do { size_t dir_len; const char *dir; - iter = vim_env_iter(':', dirs, iter, &dir, &dir_len); + iter = vim_env_iter(ENV_SEPCHAR, dirs, iter, &dir, &dir_len); if (dir != NULL && dir_len > 0) { char *dir_with_nvim = xmemdupz(dir, dir_len); dir_with_nvim = concat_fnames_realloc(dir_with_nvim, "nvim", true); |