From 6a19ca1ba579de66c044023a6ab5836bc9d4f944 Mon Sep 17 00:00:00 2001 From: Tobias Predel Date: Tue, 12 Nov 2024 23:13:41 +0100 Subject: [PATCH] Scroll to selection after width change or zoom (#756) --- src/document.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/document.h b/src/document.h index b7d2d328..2e662e3a 100644 --- a/src/document.h +++ b/src/document.h @@ -541,6 +541,7 @@ struct Document { selected.g->cell->ResetLayout(); selected.g->cell->ResetChildren(); sys->UpdateStatus(selected); + scrolltoselection = true; Refresh(); return dir > 0 ? _(L"Column width increased.") : _(L"Column width decreased."); } @@ -551,6 +552,7 @@ struct Document { selected.g->ResetChildren(); selected.g->RelSize(-dir, selected, pathscalebias); sys->UpdateStatus(selected); + scrolltoselection = true; Refresh(); return dir > 0 ? _(L"Text size increased.") : _(L"Text size decreased."); } else if (ctrl) {