listing/thread: fix wrong column index crash

columns[0] was jused in every for loop instead of columns[n], which
would make the debug_assert_eq(area generation, column generation) panic

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/379/head
Manos Pitsidianakis 3 weeks ago
parent 11f3077b06
commit 8a16cf6db4
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0

@ -1090,7 +1090,7 @@ impl ThreadListing {
let columns = &mut self.data_columns.columns;
for n in 0..=4 {
let area = columns[n].area().nth_row(idx);
columns[0].grid_mut().clear_area(area, row_attr);
columns[n].grid_mut().clear_area(area, row_attr);
}
*self.rows.entries.get_mut(idx).unwrap() = ((thread_hash, env_hash), strings);

Loading…
Cancel
Save