diff --git a/src/app.rs b/src/app.rs index 8842655..af4f848 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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 { diff --git a/src/util.rs b/src/util.rs index 70a1b81..9405fbd 100644 --- a/src/util.rs +++ b/src/util.rs @@ -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();