on master help sign in
Remove centering view from Unimpaired commands (#6193)

Remove `align_view` calls from `goto_*_diag` as per issue #6177

commit39d5fb0e593b0da1bf6e2659c67a7914edcd75a6 authorSantiago Vrancovich <103597690+santiagovrancovich@users.noreply.github.com> dateSun 5 Mar 2023, 15:41 (4 years ago) parente6597bc
1 file changed−4
helix-term/src/commands.rs−4
helix-term/src/commands.rs−4
@@ -2941,7 +2941,6 @@ fn goto_first_diag(cx: &mut Context) {
29412941 None => return,
29422942 };
29432943 doc.set_selection(view.id, selection);
2944− align_view(doc, view, Align::Center);
29452944}
29462945
29472946fn goto_last_diag(cx: &mut Context) {
@@ -2951,7 +2950,6 @@ fn goto_last_diag(cx: &mut Context) {
29512950 None => return,
29522951 };
29532952 doc.set_selection(view.id, selection);
2954− align_view(doc, view, Align::Center);
29552953}
29562954
29572955fn goto_next_diag(cx: &mut Context) {
@@ -2973,7 +2971,6 @@ fn goto_next_diag(cx: &mut Context) {
29732971 None => return,
29742972 };
29752973 doc.set_selection(view.id, selection);
2976− align_view(doc, view, Align::Center);
29772974}
29782975
29792976fn goto_prev_diag(cx: &mut Context) {
@@ -2998,7 +2995,6 @@ fn goto_prev_diag(cx: &mut Context) {
29982995 None => return,
29992996 };
30002997 doc.set_selection(view.id, selection);
3001− align_view(doc, view, Align::Center);
30022998}
30032999
30043000fn goto_first_change(cx: &mut Context) {