mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 22:35:33 +00:00
vim-patch:9.1.0721: tests: test_mksession does not consider XDG_CONFIG_HOME
Problem: tests: test_mksession does not consider XDG_CONFIG_HOME
Solution: allow to match $HOME/.vim/ and $HOME/.config/vim for &viewdir
(John M Devin)
closes: vim/vim#15639
5b9237c2e7
Co-authored-by: John M Devin <john.m.devin@gmail.com>
This commit is contained in:
@@ -114,6 +114,10 @@ endif
|
||||
" defaults before we get here, and test_mksession checks that.
|
||||
let $ORIGHOME = $HOME
|
||||
|
||||
if !exists('$XDG_CONFIG_HOME')
|
||||
let $XDG_CONFIG_HOME = $HOME .. '/.config'
|
||||
endif
|
||||
|
||||
" Make sure $HOME does not get read or written.
|
||||
let $HOME = expand(getcwd() . '/XfakeHOME')
|
||||
if !isdirectory($HOME)
|
||||
|
||||
Reference in New Issue
Block a user