Fix edge cases when handling multiple selection

This commit is contained in:
Dheepak Krishnamurthy 2021-03-23 23:36:02 -06:00
parent 82718db2f9
commit b6945ec785
3 changed files with 13 additions and 9 deletions

View file

@ -37,7 +37,7 @@ impl Default for TableState {
fn default() -> TableState {
TableState {
offset: 0,
current_selection: None,
current_selection: Some(0),
marked: HashSet::new(),
mode: TableMode::SingleSelection,
}