From 2d02d8d6fea2f8a0724d89d64d238da2aae84d94 Mon Sep 17 00:00:00 2001 From: kub Date: Wed, 25 Jan 2023 22:09:22 +0000 Subject: [PATCH] fix hang if seeking for letter in file selector --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.c b/menu.c index da9ddf2..fd7fe5a 100644 --- a/menu.c +++ b/menu.c @@ -983,7 +983,7 @@ static int dirent_seek_char(struct dirent **namelist, int len, int sel, char c) for (i = sel + 1; ; i++) { if (i >= len) - i = 1; + i = 0; if (i == sel) break; -- 2.39.5