fix hang if seeking for letter in file selector
authorkub <derkub@gmail.com>
Wed, 25 Jan 2023 22:09:22 +0000 (22:09 +0000)
committerkub <derkub@gmail.com>
Wed, 25 Jan 2023 22:09:22 +0000 (22:09 +0000)
menu.c

diff --git a/menu.c b/menu.c
index da9ddf2..fd7fe5a 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -983,7 +983,7 @@ static int dirent_seek_char(struct dirent **namelist, int len, int sel, char c)
 \r
        for (i = sel + 1; ; i++) {\r
                if (i >= len)\r
-                       i = 1;\r
+                       i = 0;\r
                if (i == sel)\r
                        break;\r
 \r