diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-08 05:01:47 +0530 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-08 05:05:20 +0530 |
commit | 984bf4fcce05cd5d495511123c2c3b6906b96f6d (patch) | |
tree | 9265278b9a1d347e90e1c6b6f64b560076d9be3a /src | |
parent | b4a2e0ee8f267ee50f92433e826fa9e42ff618db (diff) |
Pune/India: Fix handling of deleting the first index in the mark list
Diffstat (limited to 'src')
-rw-r--r-- | src/interactive/widgets/mark.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interactive/widgets/mark.rs b/src/interactive/widgets/mark.rs index ec115cf..a70f830 100644 --- a/src/interactive/widgets/mark.rs +++ b/src/interactive/widgets/mark.rs @@ -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 { |