mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
Make done behave nicely
This commit is contained in:
parent
7edbc28960
commit
c00d660759
1 changed files with 3 additions and 1 deletions
|
@ -120,6 +120,9 @@ impl App {
|
|||
}
|
||||
|
||||
pub fn draw(&mut self, f: &mut Frame<impl Backend>) {
|
||||
while self.state.selected().unwrap_or_default() >= self.tasks.len() {
|
||||
self.previous();
|
||||
}
|
||||
let rects = Layout::default()
|
||||
.constraints(
|
||||
[
|
||||
|
@ -446,7 +449,6 @@ impl App {
|
|||
task_id
|
||||
)[..],
|
||||
);
|
||||
self.previous()
|
||||
}
|
||||
|
||||
pub fn task_undo(&self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue