diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-15 20:16:05 -0500 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-15 20:16:05 -0500 |
commit | 4dc5a3f6d4d2b07199fdff9adb063a554f07897b (patch) | |
tree | 3835447888a7f4ab34a4d85bcd681adadf24bd5d /src/canvas.rs | |
parent | 51761400ce4da4bc5337a20c5ceb53d7db086220 (diff) |
Minor refactoring again.
Diffstat (limited to 'src/canvas.rs')
-rw-r--r-- | src/canvas.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/canvas.rs b/src/canvas.rs index e694dfb9..56b4a31c 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -1144,7 +1144,7 @@ impl Painter { )] }; - let mut search_text = vec![if app_state.search_state.is_searching_with_pid { + let mut search_text = vec![if app_state.process_search_state.is_searching_with_pid { Text::styled( "Search by PID (Tab for Name): ", self.colours.table_header_style, @@ -1164,21 +1164,21 @@ impl Painter { let option_row = vec![ Text::styled("Match Case (Alt+C)", self.colours.table_header_style), - if !app_state.search_state.is_ignoring_case { + if !app_state.process_search_state.is_ignoring_case { Text::styled("[*]", self.colours.table_header_style) } else { Text::styled("[ ]", self.colours.table_header_style) }, Text::styled(" ", self.colours.table_header_style), Text::styled("Match Whole Word (Alt+W)", self.colours.table_header_style), - if app_state.search_state.is_searching_whole_word { + if app_state.process_search_state.is_searching_whole_word { Text::styled("[*]", self.colours.table_header_style) } else { Text::styled("[ ]", self.colours.table_header_style) }, Text::styled(" ", self.colours.table_header_style), Text::styled("Use Regex (Alt+R)", self.colours.table_header_style), - if app_state.search_state.is_searching_with_regex { + if app_state.process_search_state.is_searching_with_regex { Text::styled("[*]", self.colours.table_header_style) } else { Text::styled("[ ]", self.colours.table_header_style) |