forked from aniani/vim
patch 8.1.1120: cannot easily get directory entry matches
Problem: Cannot easily get directory entry matches. Solution: Add the readdir() function. (Yasuhiro Matsumoto, closes #2439)
This commit is contained in:
@@ -5790,6 +5790,9 @@ dos_expandpath(
|
||||
while (ok)
|
||||
{
|
||||
p = utf16_to_enc(wfb.cFileName, NULL); // p is allocated here
|
||||
if (p == NULL)
|
||||
break; // out of memory
|
||||
|
||||
// Ignore entries starting with a dot, unless when asked for. Accept
|
||||
// all entries found with "matchname".
|
||||
if ((p[0] != '.' || starts_with_dot
|
||||
|
Reference in New Issue
Block a user