CompactListing: update self.rows{,_drawn} on row update

self.rows{,_drawn} were left unupdated, and stale envelope hashes could
result in panics
async
Manos Pitsidianakis 2020-07-17 00:04:59 +03:00
parent 1bac926bdc
commit 08d8c05a67
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 2 additions and 0 deletions

View File

@ -1109,6 +1109,8 @@ impl CompactListing {
}
(false, false) => {}
}
*self.rows.get_mut(idx).unwrap() = ((idx, (thread_hash, env_hash)), strings);
self.rows_drawn.update(idx, 1);
}
}