From 39d5fb0e593b0da1bf6e2659c67a7914edcd75a6 Mon Sep 17 00:00:00 2001 From: Santiago Vrancovich <103597690+santiagovrancovich@users.noreply.github.com> Date: Sun, 5 Mar 2023 15:41:49 -0300 Subject: [PATCH] Remove centering view from Unimpaired commands (#6193) Remove `align_view` calls from `goto_*_diag` as per issue #6177 --- helix-term/src/commands.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 7b9b59434..cd7626ebd 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) {