From 3915a8fe9c686bb45a9141efba573de930c982ee Mon Sep 17 00:00:00 2001 From: Kevin Adams Date: Fri, 10 Jul 2026 08:02:55 -0600 Subject: [PATCH] Closing the search bar should remove highlights in all tabs (#733) --- xed/xed-commands-search.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/xed/xed-commands-search.c b/xed/xed-commands-search.c index 97f6b5b2..b1313863 100644 --- a/xed/xed-commands-search.c +++ b/xed/xed-commands-search.c @@ -51,15 +51,20 @@ _xed_cmd_search_find_prev (GtkAction *action, void _xed_cmd_search_clear_highlight (XedWindow *window) { - XedDocument *doc; + GList *docs; + GList *l; xed_debug (DEBUG_COMMANDS); - doc = xed_window_get_active_document (window); - if (doc != NULL) + docs = xed_window_get_documents (window); + + for (l = docs; l != NULL; l = l->next) { + XedDocument *doc = XED_DOCUMENT (l->data); xed_document_set_search_context (doc, NULL); } + + g_list_free (docs); } void