mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.1.0393: 'viewdir' not respecting $XDG_CONFIG_HOME
Problem: 'viewdir' not respecting $XDG_CONFIG_HOME (Danilo Rezende, after v9.1.327) Solution: adjust 'viewdir' option when enabling XDG config mode fixes: #14680 closes: #14708 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -347,6 +347,8 @@ typedef struct dsc$descriptor DESC;
|
||||
# define DFLT_VDIR "sys$login:vimfiles/view"
|
||||
# else
|
||||
# define DFLT_VDIR "$HOME/.vim/view" // default for 'viewdir'
|
||||
# define XDG_VDIR (mch_getenv("XDG_CONFIG_HOME") ? \
|
||||
"$XDG_CONFIG_HOME/vim/view" : "~/.config/vim/view")
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user