Fix context filter

This commit is contained in:
Dheepak Krishnamurthy 2021-02-17 15:56:55 -07:00
parent 5356b581d4
commit 4fec098365
2 changed files with 2 additions and 3 deletions

View file

@ -518,7 +518,7 @@ impl TTApp {
let task_uuid = *self.tasks.lock().unwrap()[selected].uuid(); let task_uuid = *self.tasks.lock().unwrap()[selected].uuid();
let output = Command::new("task") let output = Command::new("task")
.arg("rc.color=off") .arg("rc.color=off")
.arg(format!("rc.defaultwidth={}", f.size().width-2)) .arg(format!("rc.defaultwidth={}", f.size().width - 2))
.arg(format!("{}", task_uuid)) .arg(format!("{}", task_uuid))
.output(); .output();
if let Ok(output) = output { if let Ok(output) = output {
@ -927,7 +927,7 @@ impl TTApp {
task.arg("rc.confirmation=off"); task.arg("rc.confirmation=off");
task.arg("export"); 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); let t = format!("{} {}", self.filter.as_str(), self.current_context_filter);
t t
} else { } else {

View file

@ -79,7 +79,6 @@ impl Events {
thread::spawn(move || { thread::spawn(move || {
let mut last_tick = Instant::now(); let mut last_tick = Instant::now();
loop { loop {
if pause_stdin.load(Ordering::SeqCst) { if pause_stdin.load(Ordering::SeqCst) {
thread::sleep(Duration::from_millis(250)); thread::sleep(Duration::from_millis(250));
thread::park(); thread::park();