mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Fix context filter
This commit is contained in:
parent
5356b581d4
commit
4fec098365
2 changed files with 2 additions and 3 deletions
|
@ -518,7 +518,7 @@ impl TTApp {
|
|||
let task_uuid = *self.tasks.lock().unwrap()[selected].uuid();
|
||||
let output = Command::new("task")
|
||||
.arg("rc.color=off")
|
||||
.arg(format!("rc.defaultwidth={}", f.size().width-2))
|
||||
.arg(format!("rc.defaultwidth={}", f.size().width - 2))
|
||||
.arg(format!("{}", task_uuid))
|
||||
.output();
|
||||
if let Ok(output) = output {
|
||||
|
@ -927,7 +927,7 @@ impl TTApp {
|
|||
task.arg("rc.confirmation=off");
|
||||
task.arg("export");
|
||||
|
||||
let filter = if self.current_context_filter.is_empty() {
|
||||
let filter = if !self.current_context_filter.is_empty() {
|
||||
let t = format!("{} {}", self.filter.as_str(), self.current_context_filter);
|
||||
t
|
||||
} else {
|
||||
|
|
|
@ -79,7 +79,6 @@ impl Events {
|
|||
thread::spawn(move || {
|
||||
let mut last_tick = Instant::now();
|
||||
loop {
|
||||
|
||||
if pause_stdin.load(Ordering::SeqCst) {
|
||||
thread::sleep(Duration::from_millis(250));
|
||||
thread::park();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue