aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.h
diff options
context:
space:
mode:
authorJurica Bradarić <jbradaric@users.noreply.github.com>2019-10-06 05:35:48 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-10-05 20:35:48 -0700
commitfe074611cd5b3319a3f639f68289df6a718e64eb (patch)
treef6709dc199d929ddeb75e98b74e74a894b4b5c6c /src/nvim/path.h
parent1396cc9abb0dfcdbd9572706235aba59f7c3318a (diff)
downloadrneovim-fe074611cd5b3319a3f639f68289df6a718e64eb.tar.gz
rneovim-fe074611cd5b3319a3f639f68289df6a718e64eb.tar.bz2
rneovim-fe074611cd5b3319a3f639f68289df6a718e64eb.zip
vim-patch:8.1.1371: cannot recover from a swap file #11081
Problem: Cannot recover from a swap file. Solution: Do not expand environment variables in the swap file name. Do not check the extension when we already know a file is a swap file. (Ken Takata, closes 4415, closes vim/vim#4369) https://github.com/vim/vim/commit/99499b1c05f85f83876b828eea3f6e14f0f407b4
Diffstat (limited to 'src/nvim/path.h')
-rw-r--r--src/nvim/path.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/path.h b/src/nvim/path.h
index 4e466d1b71..15abd19646 100644
--- a/src/nvim/path.h
+++ b/src/nvim/path.h
@@ -20,11 +20,12 @@
#define EW_KEEPDOLLAR 0x800 /* do not escape $, $var is expanded */
/* Note: mostly EW_NOTFOUND and EW_SILENT are mutually exclusive: EW_NOTFOUND
* is used when executing commands and EW_SILENT for interactive expanding. */
-#define EW_ALLLINKS 0x1000 // also links not pointing to existing file
-#define EW_SHELLCMD 0x2000 // called from expand_shellcmd(), don't check
- // if executable is in $PATH
-#define EW_DODOT 0x4000 // also files starting with a dot
-#define EW_EMPTYOK 0x8000 // no matches is not an error
+#define EW_ALLLINKS 0x1000 // also links not pointing to existing file
+#define EW_SHELLCMD 0x2000 // called from expand_shellcmd(), don't check
+ // if executable is in $PATH
+#define EW_DODOT 0x4000 // also files starting with a dot
+#define EW_EMPTYOK 0x8000 // no matches is not an error
+#define EW_NOTENV 0x10000 // do not expand environment variables
/// Return value for the comparison of two files. Also @see path_full_compare.
typedef enum file_comparison {