From 398c52e1b9a5c91cd99277463080819ebdedfe1d Mon Sep 17 00:00:00 2001 From: Marvin W Date: Thu, 2 Jan 2025 14:22:41 +0100 Subject: Work around pango bug See https://gitlab.gnome.org/GNOME/pango/-/issues/798 and https://gitlab.gnome.org/GNOME/pango/-/issues/832 --- main/src/ui/global_search.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/ui/global_search.vala') diff --git a/main/src/ui/global_search.vala b/main/src/ui/global_search.vala index 2fb31a90..a63aaed1 100644 --- a/main/src/ui/global_search.vala +++ b/main/src/ui/global_search.vala @@ -223,7 +223,7 @@ public class GlobalSearch { grid.margin_top = 3; grid.margin_bottom = 3; - string text = item.message.body.replace("\n", "").replace("\r", ""); + string text = Util.unbreak_space_around_non_spacing_mark(item.message.body.replace("\n", "").replace("\r", "")); if (text.length > 200) { int index = text.index_of(search); if (index + search.length <= 100) { -- cgit v1.2.3-70-g09d2