From b6d0077d04bf660d1608a50e258e4e507c3f2457 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Wed, 27 May 2020 22:23:28 -0500 Subject: [PATCH] fix regression where 'p' didn't toggle paths --- src/render.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.rs b/src/render.rs index 8a76f8e..0526808 100644 --- a/src/render.rs +++ b/src/render.rs @@ -1586,7 +1586,7 @@ impl<'a> TerminalRenderer { Some(p) => Some(p.nice()), None => None, }; - } else if !self.show_find && input == Key::Char('p') { + } else if !self.show_find && self.app.selected_process.is_some() && input == Key::Char('p') { self.process_message = None; self.process_message = match &mut self.app.selected_process { Some(p) => Some(p.set_priority(0)),