summaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorSantiago Vrancovich2023-03-05 18:41:49 +0000
committerGitHub2023-03-05 18:41:49 +0000
commit39d5fb0e593b0da1bf6e2659c67a7914edcd75a6 (patch)
tree7713dd2c365c8321ef5fcdce9e363aa1e223b49d /helix-term/src
parente6597bc9927c73800d31d4a45dc695a4abe77ec8 (diff)
Remove centering view from Unimpaired commands (#6193)
Remove `align_view` calls from `goto_*_diag` as per issue #6177
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 7b9b5943..cd7626eb 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -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) {
@@ -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) {
@@ -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) {
@@ -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) {