From b0d4cf03c8d3bedc334424025a68e345bf72e076 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 17 Dec 2024 03:22:45 +0200 Subject: [PATCH] fix tags priority --- src/app/browser/window/tab/item/page/search/subject/tag.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/page/search/subject/tag.rs b/src/app/browser/window/tab/item/page/search/subject/tag.rs index 184abea7..3f79a698 100644 --- a/src/app/browser/window/tab/item/page/search/subject/tag.rs +++ b/src/app/browser/window/tab/item/page/search/subject/tag.rs @@ -20,7 +20,7 @@ impl Tag { // Init tag table // keep order as `current` should overwrite `found` tag style // https://docs.gtk.org/gtk4/method.TextTag.set_priority.html - for &tag in &[¤t, &found] { + for &tag in &[&found, ¤t] { if !table.add(tag) { todo!() }