Skip to content

Commit

Permalink
Scroll to selection after width change or zoom (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo authored Nov 12, 2024
1 parent 5d848e2 commit 6a19ca1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand All @@ -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) {
Expand Down

0 comments on commit 6a19ca1

Please sign in to comment.