Skip to content

Commit

Permalink
cmd purge work for sub-tasks now
Browse files Browse the repository at this point in the history
  • Loading branch information
jfding committed Sep 17, 2024
1 parent 2fd8d47 commit 14b6f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/taskbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ impl TaskBox {

// 1st scan: remove dups
for (task, done) in self.tasks.iter() {
if ! hs.contains(task) || task.starts_with(SUB_PREFIX) {
if ! hs.contains(task) {
newtasks.push((task.clone(), *done));
hs.insert(task);
}
Expand Down

0 comments on commit 14b6f49

Please sign in to comment.