mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
Fix filter input
This commit is contained in:
parent
9b0b8d40d2
commit
868581a441
1 changed files with 2 additions and 2 deletions
|
@ -502,8 +502,8 @@ impl TTApp {
|
||||||
match self.mode {
|
match self.mode {
|
||||||
AppMode::TaskReport => self.draw_command(f, rects[1], self.filter.as_str(), "Filter Tasks"),
|
AppMode::TaskReport => self.draw_command(f, rects[1], self.filter.as_str(), "Filter Tasks"),
|
||||||
AppMode::TaskFilter => {
|
AppMode::TaskFilter => {
|
||||||
f.render_widget(Clear, rects[1]);
|
|
||||||
f.set_cursor(rects[1].x + self.filter.pos() as u16 + 1, rects[1].y + 1);
|
f.set_cursor(rects[1].x + self.filter.pos() as u16 + 1, rects[1].y + 1);
|
||||||
|
f.render_widget(Clear, rects[1]);
|
||||||
self.draw_command(f, rects[1], self.filter.as_str(), "Filter Tasks");
|
self.draw_command(f, rects[1], self.filter.as_str(), "Filter Tasks");
|
||||||
}
|
}
|
||||||
AppMode::TaskModify => {
|
AppMode::TaskModify => {
|
||||||
|
@ -1562,7 +1562,7 @@ impl TTApp {
|
||||||
self.mode = AppMode::TaskReport;
|
self.mode = AppMode::TaskReport;
|
||||||
self.update();
|
self.update();
|
||||||
}
|
}
|
||||||
_ => handle_movement(&mut self.command, input),
|
_ => handle_movement(&mut self.filter, input),
|
||||||
},
|
},
|
||||||
AppMode::TaskError => self.mode = AppMode::TaskReport,
|
AppMode::TaskError => self.mode = AppMode::TaskReport,
|
||||||
AppMode::Calendar => match input {
|
AppMode::Calendar => match input {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue