From 4a4a9cf221bded63835ef25f7faa6731dd8165fc Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Sun, 12 Apr 2020 19:26:32 -0400 Subject: [PATCH] bug: Fix dd failing on non-first entries (#116) --- CHANGELOG.md | 4 ++++ src/app.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d646c17..ee628d6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changed default colours for highlighted borders and table headers to cyan - this is mostly to deal with Powershell colour conflicts. +### Bug Fixes + +- Fixed `dd` not working on non-first entries. + ## [0.3.0] - 2020-04-07 ### Features diff --git a/src/app.rs b/src/app.rs index 005f3f0a..92f56770 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1265,7 +1265,7 @@ impl App { .get(&self.current_widget.widget_id) { if proc_widget_state.scroll_state.current_scroll_position - < self.canvas_data.finalized_process_data_map.len() as u64 + < corresponding_filtered_process_list.len() as u64 { let current_process = if self.is_grouped(self.current_widget.widget_id) { let group_pids = &corresponding_filtered_process_list