aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index fb55ca2a..7b9b5943 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -3061,10 +3061,7 @@ fn goto_next_change_impl(cx: &mut Context, direction: Direction) {
.prev_hunk(cursor_line)
.map(|idx| idx.saturating_sub(count)),
};
- // TODO refactor with let..else once MSRV reaches 1.65
- let hunk_idx = if let Some(hunk_idx) = hunk_idx {
- hunk_idx
- } else {
+ let Some(hunk_idx) = hunk_idx else {
return range;
};
let hunk = hunks.nth_hunk(hunk_idx);