summaryrefslogtreecommitdiffstats
path: root/src/canvas.rs
diff options
context:
space:
mode:
authorClementTsang <clementjhtsang@gmail.com>2019-09-25 12:35:32 -0400
committerClementTsang <clementjhtsang@gmail.com>2019-09-25 12:35:32 -0400
commitb5cacb3e2ed993310d9ebd178041e89f5d4fd754 (patch)
treeb726a8a0bbab48de889a87bcef7504adccf8e4b7 /src/canvas.rs
parenta5924725621e7b01c5d5b18dfe5e99d8fe4c0044 (diff)
Added arrow key control for processes and the like, and fixed off by one error.
Diffstat (limited to 'src/canvas.rs')
-rw-r--r--src/canvas.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/canvas.rs b/src/canvas.rs
index 7e13dd8f..cb35d723 100644
--- a/src/canvas.rs
+++ b/src/canvas.rs
@@ -251,7 +251,7 @@ pub fn draw_data<B : backend::Backend>(terminal : &mut Terminal<B>, app_state :
if app_state.currently_selected_process_position < num_rows {
0
}
- else if app_state.currently_selected_process_position - num_rows <= app_state.previous_process_position {
+ else if app_state.currently_selected_process_position - num_rows < app_state.previous_process_position {
app_state.previous_process_position
}
else {