aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-06-12 22:57:04 +0200
committerDaniel Hahler <git@thequod.de>2019-06-13 00:28:16 +0200
commit66613ace48141d71ab12de56d0b0db79f48697d9 (patch)
tree347162dea46b5fce93125751d57c3fc9305c96f1 /src/nvim/option.c
parent5db3be092af2853c4f45f4933494bb62249ac994 (diff)
downloadrneovim-66613ace48141d71ab12de56d0b0db79f48697d9.tar.gz
rneovim-66613ace48141d71ab12de56d0b0db79f48697d9.tar.bz2
rneovim-66613ace48141d71ab12de56d0b0db79f48697d9.zip
vim-patch:8.0.1704: 'backupskip' default doesn't work for Mac
Problem: 'backupskip' default doesn't work for Mac. Solution: Use "/private/tmp". (Rainer Müller, closes vim/vim#2793) https://github.com/vim/vim/commit/b8e22a053b68774dfd86fd829d9dba2333f09c05
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index fde1116cc9..a39be0fe96 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -626,7 +626,11 @@ void set_init_1(void)
char *p;
# ifdef UNIX
if (*names[n] == NUL) {
+# ifdef __APPLE__
+ p = "/private/tmp";
+# else
p = "/tmp";
+# endif
mustfree = false;
} else
# endif