Skip to content

Commit

Permalink
Pune/India: Fix handling of deleting the first index in the mark list
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thiel committed Jun 7, 2019
1 parent b4a2e0e commit 984bf4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactive/widgets/mark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl MarkPane {
if se_len.saturating_sub(1) == 0 {
return None;
}
self.selected = selected.checked_sub(1);
self.selected = Some(selected.saturating_sub(1));
}
Some(self)
} else {
Expand Down

0 comments on commit 984bf4f

Please sign in to comment.