mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
There is a bug in the "search by typing" feature of AbstractView, where the highlighted text shown in items' title won't match the search query if the search query contains whitespace. This commit fixes that bug. The bug is caused by a bad assumption made in AbstractView::draw_item_text about the Painter::draw_text API. Specifically that the function passed to it will be called for each code point of the string instead of for each drawable glyph. This is fixed by not relying on looking at the length of the highlight string, but instead looking at its content.
26 KiB
26 KiB