aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app.rs
diff options
context:
space:
mode:
authorlukeflo2024-10-06 13:29:51 +0200
committerlukeflo2024-10-12 22:41:38 +0200
commit7acb8e72a050402cbd53f74ae15e2fa6661c9fa6 (patch)
tree84456c368cf7e6198eacb4c7efeef052c7da854c /src/frontend/app.rs
parent7369dace2c2584b0302b79eaf15f1945a9dc6e20 (diff)
downloadbibiman-7acb8e72a050402cbd53f74ae15e2fa6661c9fa6.tar.gz
bibiman-7acb8e72a050402cbd53f74ae15e2fa6661c9fa6.zip
fix error in nested search, update vhs gif
Diffstat (limited to 'src/frontend/app.rs')
-rw-r--r--src/frontend/app.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/frontend/app.rs b/src/frontend/app.rs
index 00c1b45..0751da1 100644
--- a/src/frontend/app.rs
+++ b/src/frontend/app.rs
@@ -211,7 +211,10 @@ impl App {
self.current_area = CurrentArea::TagArea;
self.tag_list.tag_list_state.select(Some(0))
}
- self.reset_current_list();
+ // But keep filtering by tag if applied before entering search area
+ if !self.search_struct.inner_search {
+ self.reset_current_list();
+ }
self.former_area = None;
// If search is canceled, reset default status of struct
self.search_struct.search_string.clear();