bug: Fix dd failing on non-first entries (#116)

This commit is contained in:
Clement Tsang 2020-04-12 19:26:32 -04:00 committed by GitHub
parent bcfd09da88
commit 4a4a9cf221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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. - 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 ## [0.3.0] - 2020-04-07
### Features ### Features

View file

@ -1265,7 +1265,7 @@ impl App {
.get(&self.current_widget.widget_id) .get(&self.current_widget.widget_id)
{ {
if proc_widget_state.scroll_state.current_scroll_position 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 current_process = if self.is_grouped(self.current_widget.widget_id) {
let group_pids = &corresponding_filtered_process_list let group_pids = &corresponding_filtered_process_list