From 9ceceeb59a95919e5fe09338dc27e4fac0b5aa24 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sat, 19 Nov 2022 15:18:40 +0000 Subject: Sort items in normal tofi mode when using history. This is a short-term workaround for history sorting not working, due to the binary search used to find exiting items relying on the input already being sorted. --- src/compgen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compgen.c') diff --git a/src/compgen.c b/src/compgen.c index b4bcc4c..9e9f422 100644 --- a/src/compgen.c +++ b/src/compgen.c @@ -183,6 +183,7 @@ void compgen_history_sort(struct string_vec *programs, struct history *history) for (size_t i = 0; i < history->count; i++) { char **res = string_vec_find(programs, history->buf[i].name); if (res == NULL) { + log_debug("History entry \"%s\" not found.\n", history->buf[i].name); continue; } free(*res); -- cgit v1.2.3