1
0
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:
Bram Moolenaar
2019-04-05 22:50:40 +02:00
parent 577fadfc10
commit 543c9b1921
7 changed files with 256 additions and 3 deletions

View File

@@ -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