diff options
author | Phil Jones <philj56@gmail.com> | 2022-07-05 11:03:58 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-07-05 11:03:58 +0100 |
commit | cff85b9a55c7d3f08de9ef9272b97d7fa6212302 (patch) | |
tree | 5d0d9b147ec2f2ec63a86f0e26fceee9e03c8452 /src/entry_backend/harfbuzz.c | |
parent | e062dc7ca2bb70561b11674428939057832158a9 (diff) |
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.
Diffstat (limited to 'src/entry_backend/harfbuzz.c')
-rw-r--r-- | src/entry_backend/harfbuzz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entry_backend/harfbuzz.c b/src/entry_backend/harfbuzz.c index fe4d7dc..bb4429c 100644 --- a/src/entry_backend/harfbuzz.c +++ b/src/entry_backend/harfbuzz.c @@ -228,7 +228,7 @@ void entry_backend_harfbuzz_update(struct entry *entry) hb_buffer_clear_contents(buffer); setup_hb_buffer(buffer); - hb_buffer_add_utf8(buffer, entry->results.buf[i], -1, 0, -1); + hb_buffer_add_utf8(buffer, entry->results.buf[i].string, -1, 0, -1); hb_shape(entry->harfbuzz.hb_font, buffer, NULL, 0); if (i == entry->selection) { cairo_push_group(cr); |