summaryrefslogtreecommitdiffstats
path: root/src/os_unix.h
diff options
context:
space:
mode:
authorDiego Viola <diego.viola@gmail.com>2024-04-16 20:58:45 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-16 21:50:33 +0200
commitd1068a2bb09fd3b9d117d832105bf10dd5e48e2f (patch)
tree7c877f3ea55ca10e109de5417db160534e39205d /src/os_unix.h
parent2da68c8b61286ed347076718b66028f7251c8cdf (diff)
patch 9.1.0337: Missing entry for XDG vimrc file in :versionv9.1.0337
Problem: Missing entry for XDG vimrc file in :version Solution: Add 4th user vimrc entry to :version output (Diego Viola) related: #14182 closes: #14569 Signed-off-by: Diego Viola <diego.viola@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/os_unix.h')
-rw-r--r--src/os_unix.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os_unix.h b/src/os_unix.h
index d214a4aaf1..67dad2e689 100644
--- a/src/os_unix.h
+++ b/src/os_unix.h
@@ -250,9 +250,9 @@ typedef struct dsc$descriptor DESC;
#endif
#ifndef XDG_VIMRC_FILE
-# define XDG_VIMRC_FILE mch_getenv("XDG_CONFIG_HOME") \
- ? (char_u *)"$XDG_CONFIG_HOME/vim/vimrc" \
- : (char_u *)"~/.config/vim/vimrc"
+# define XDG_VIMRC_FILE (mch_getenv("XDG_CONFIG_HOME") \
+ ? "$XDG_CONFIG_HOME/vim/vimrc" \
+ : "~/.config/vim/vimrc")
#endif
#if !defined(USR_VIMRC_FILE3) && defined(VMS)