Skip to content

Commit

Permalink
Remove centering view from Unimpaired commands (#6193)
Browse files Browse the repository at this point in the history
Remove `align_view` calls from `goto_*_diag` as per issue #6177
  • Loading branch information
santiagovrancovich authored Mar 5, 2023
1 parent e6597bc commit 39d5fb0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2941,7 +2941,6 @@ fn goto_first_diag(cx: &mut Context) {
None => return,
};
doc.set_selection(view.id, selection);
align_view(doc, view, Align::Center);
}

fn goto_last_diag(cx: &mut Context) {
Expand All @@ -2951,7 +2950,6 @@ fn goto_last_diag(cx: &mut Context) {
None => return,
};
doc.set_selection(view.id, selection);
align_view(doc, view, Align::Center);
}

fn goto_next_diag(cx: &mut Context) {
Expand All @@ -2973,7 +2971,6 @@ fn goto_next_diag(cx: &mut Context) {
None => return,
};
doc.set_selection(view.id, selection);
align_view(doc, view, Align::Center);
}

fn goto_prev_diag(cx: &mut Context) {
Expand All @@ -2998,7 +2995,6 @@ fn goto_prev_diag(cx: &mut Context) {
None => return,
};
doc.set_selection(view.id, selection);
align_view(doc, view, Align::Center);
}

fn goto_first_change(cx: &mut Context) {
Expand Down

0 comments on commit 39d5fb0

Please sign in to comment.