From cff85b9a55c7d3f08de9ef9272b97d7fa6212302 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 5 Jul 2022 11:03:58 +0100 Subject: Sort results by match position. Search results will now be sorted by history first, then by the position of the match, such that a match at the start of a result will appear before a match later in the result. --- src/entry_backend/pango.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/entry_backend/pango.c') diff --git a/src/entry_backend/pango.c b/src/entry_backend/pango.c index 8a0add7..34bb05e 100644 --- a/src/entry_backend/pango.c +++ b/src/entry_backend/pango.c @@ -80,7 +80,7 @@ void entry_backend_pango_update(struct entry *entry) } const char *str; if (i < entry->results.count) { - str = entry->results.buf[i]; + str = entry->results.buf[i].string; } else { str = ""; } -- cgit v1.2.3