Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 984bf4f

Browse files
author
Sebastian Thiel
committed
Pune/India: Fix handling of deleting the first index in the mark list
1 parent b4a2e0e commit 984bf4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/interactive/widgets/mark.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl MarkPane {
113113
if se_len.saturating_sub(1) == 0 {
114114
return None;
115115
}
116-
self.selected = selected.checked_sub(1);
116+
self.selected = Some(selected.saturating_sub(1));
117117
}
118118
Some(self)
119119
} else {

0 commit comments

Comments
 (0)