mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Add error message support to task undo
This commit is contained in:
parent
d13ae4b567
commit
ed3180ef2d
2 changed files with 15 additions and 5 deletions
|
@ -69,7 +69,13 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
app.error = e;
|
||||
}
|
||||
},
|
||||
Key::Char('u') => app.task_undo(),
|
||||
Key::Char('u') => match app.task_undo() {
|
||||
Ok(_) => (),
|
||||
Err(e) => {
|
||||
app.mode = AppMode::TaskError;
|
||||
app.error = e;
|
||||
}
|
||||
},
|
||||
Key::Char('e') => {
|
||||
events.pause_event_loop(&mut terminal);
|
||||
app.task_edit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue