From 5d5bc45ca33befd65fa00bc4bf603b1630c96394 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Mon, 18 May 2020 18:39:19 +0800 Subject: [PATCH] Fix directory listing. --- menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.cpp b/menu.cpp index 915c62f..150bfbe 100644 --- a/menu.cpp +++ b/menu.cpp @@ -5300,7 +5300,7 @@ void PrintDirectory(int expand) leftchar = 0; int len = 0; - if (i < flist_nDirEntries()) + if (k < flist_nDirEntries()) { len = strlen(flist_DirItem(k)->altname); // get name length if (len > 28)