summaryrefslogtreecommitdiff
path: root/src/os_vms.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-01-04 10:47:26 +0100
committerBram Moolenaar <Bram@vim.org>2021-01-04 10:47:26 +0100
commit82c38fe508155c11a904e6111b5bfb6adde3fb9a (patch)
tree818661460a865d7096bc13737d56199d4b009125 /src/os_vms.c
parentbb0956fc65ebe8df1da823f9c4d6a0013d9ba5c1 (diff)
downloadvim-git-82c38fe508155c11a904e6111b5bfb6adde3fb9a.tar.gz
patch 8.2.2294: VMS: a few remaining problemsv8.2.2294
Problem: VMS: a few remaining problems. Solution: Add VMS specific changes. Add Lua support. (Zoltan Arpadffy)
Diffstat (limited to 'src/os_vms.c')
-rw-r--r--src/os_vms.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/os_vms.c b/src/os_vms.c
index b8ad78898..6dc6ad411 100644
--- a/src/os_vms.c
+++ b/src/os_vms.c
@@ -672,9 +672,18 @@ vms_fixfilename(void *instring)
else if (strchr(instring,'"') == NULL) // password in the path?
{
// Seems it is a regular file, let guess that it is pure Unix fspec
- if (decc$to_vms(instring, vms_fspec_proc, 0, 0) <= 0)
- // No... it must be mixed
+ if ( (strchr(instring,'[') == NULL) && (strchr(instring,'<') == NULL) &&
+ (strchr(instring,']') == NULL) && (strchr(instring,'>') == NULL) &&
+ (strchr(instring,':') == NULL) )
+ {
+ // It must be a truly unix fspec
+ decc$to_vms(instring, vms_fspec_proc, 0, 0);
+ }
+ else
+ {
+ // It is a mixed fspec
vms_unix_mixed_filespec(instring, buf);
+ }
}
else
// we have a password in the path