0
0
mirror of https://github.com/vim/vim.git synced 2025-10-14 07:04:10 -04:00

patch 9.0.0126: expanding file names fails in dir with more than 255 entries

Problem:    Expanding file names fails in directory with more than 255
            entries.
Solution:   Use an int instead of char_u to count. (John Drouhard,
            closes #10818)
This commit is contained in:
John Drouhard
2022-08-01 11:38:17 +01:00
committed by Bram Moolenaar
parent 84b247fab7
commit 95fca12b0e
3 changed files with 27 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ typedef struct ff_stack
// of wc_part
char_u **ffs_filearray;
int ffs_filearray_size;
char_u ffs_filearray_cur; // needed for partly handled dirs
int ffs_filearray_cur; // needed for partly handled dirs
// to store status of partly handled directories
// 0: we work on this directory for the first time