diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-12-29 18:16:21 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-29 18:16:21 +0000 |
commit | 5a664fe57fe7ba65a771bc95ef1c205e4db193b7 (patch) | |
tree | f5ce0ac38f78b3fe6e95448f7f5d58f4078ef68a /src/os_mswin.c | |
parent | ba26367fea3b63df49d274f3d5cca0af38402add (diff) | |
download | vim-git-5a664fe57fe7ba65a771bc95ef1c205e4db193b7.tar.gz |
patch 8.2.3939: MS-Windows: fnamemodify('', ':p') does not workv8.2.3939
Problem: MS-Windows: fnamemodify('', ':p') does not work.
Solution: Do not consider an empty string a full path. (Yegappan Lakshmanan,
closes #9428, closes #9427)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index 26042b498..e27f38908 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -390,7 +390,7 @@ mch_isFullName(char_u *fname) // the same as the name or mch_FullName() fails. However, this has quite a // bit of overhead, so let's not do that. if (*fname == NUL) - return TRUE; + return FALSE; return ((ASCII_ISALPHA(fname[0]) && fname[1] == ':' && (fname[2] == '/' || fname[2] == '\\')) || (fname[0] == fname[1] && (fname[0] == '/' || fname[0] == '\\'))); |