mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 12:17:19 +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>) {
|
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()
|
let rects = Layout::default()
|
||||||
.constraints(
|
.constraints(
|
||||||
[
|
[
|
||||||
|
@ -446,7 +449,6 @@ impl App {
|
||||||
task_id
|
task_id
|
||||||
)[..],
|
)[..],
|
||||||
);
|
);
|
||||||
self.previous()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn task_undo(&self) {
|
pub fn task_undo(&self) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue