mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
vim-patch:8.2.3939: MS-Windows: fnamemodify('', ':p') does not work
Problem: MS-Windows: fnamemodify('', ':p') does not work.
Solution: Do not consider an empty string a full path. (Yegappan Lakshmanan,
closes vim/vim#9428, closes vim/vim#9427)
5a664fe57f
This commit is contained in:
@@ -2403,7 +2403,7 @@ int path_is_absolute(const char_u *fname)
|
||||
{
|
||||
#ifdef WIN32
|
||||
if (*fname == NUL) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
// A name like "d:/foo" and "//server/share" is absolute
|
||||
return ((isalpha(fname[0]) && fname[1] == ':' && vim_ispathsep_nocolon(fname[2]))
|
||||
|
Reference in New Issue
Block a user