From 9d389258b18445420891ac36b1d3dd75b812ae63 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Sun, 31 Oct 2021 00:51:50 -0600 Subject: [PATCH] fix: Make task selection jump on add --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 4617f11..6152d48 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1237,7 +1237,7 @@ impl TaskwarriorTui { pub fn update(&mut self, force: bool) -> Result<()> { if force || self.dirty || self.tasks_changed_since(self.last_export).unwrap_or(true) { let task_uuids = self.selected_task_uuids(); - if self.current_selection_uuid.is_none() && task_uuids.len() == 1 { + if self.current_selection_uuid.is_none() && self.current_selection_id.is_none() && task_uuids.len() == 1 { if let Some(uuid) = task_uuids.get(0) { self.current_selection_uuid = Some(*uuid); }