aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorPavel Platto <hinidu@gmail.com>2014-06-19 00:58:04 +0300
committerNicolas Hillegeer <nicolas@hillegeer.com>2014-07-14 21:14:39 +0200
commitedd7a8c5ddd99bd0c02b4218d43bccb562809d55 (patch)
tree764a6762ee492e3589c209fd1d34559addcc70ab /src/nvim/diff.c
parented10eb6fa92989d5a3841bf225a38b524c910e2e (diff)
downloadrneovim-edd7a8c5ddd99bd0c02b4218d43bccb562809d55.tar.gz
rneovim-edd7a8c5ddd99bd0c02b4218d43bccb562809d55.tar.bz2
rneovim-edd7a8c5ddd99bd0c02b4218d43bccb562809d55.zip
Remove #ifdefs TEMPDIRNAMES and add TEMPDIRNAMES for Windows
Vim does not define TEMPDIRNAMES for all systems, but it is defined for all systems supported by Neovim. Temporary directory names for Windows was obtained from GetTempPath() function documentation at MSDN. Additionally small renamings were performed.
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r--src/nvim/diff.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index e7feacd4fb..0ae3d5553e 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -893,15 +893,11 @@ void ex_diffpatch(exarg_T *eap)
|| (os_chdir((char *)dirbuf) != 0)) {
dirbuf[0] = NUL;
} else {
-# ifdef TEMPDIRNAMES
if (vim_tempdir != NULL) {
ignored = os_chdir((char *)vim_tempdir);
} else {
ignored = os_chdir("/tmp");
}
-# else
- ignored = os_chdir("/tmp");
-# endif // ifdef TEMPDIRNAMES
shorten_fnames(TRUE);
}
#endif // ifdef UNIX