Skip to content

Commit

Permalink
fix regression where 'p' didn't toggle paths
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaisvil committed May 28, 2020
1 parent 9d98cf7 commit b6d0077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit b6d0077

Please sign in to comment.