Skip to content

Commit 0e71786

Browse files
authored
Move update of statusbar to DrawSelect (#778)
This makes it interoperable on Windows, Linux and macOS.
1 parent bbff91e commit 0e71786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/document.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ struct Document {
219219
}
220220

221221
void DrawSelect(wxDC &dc, Selection &s, bool refreshinstead = false, bool cursoronly = false) {
222+
sys->UpdateAmountStatus(s);
222223
#ifdef SIMPLERENDER
223224
if (refreshinstead) {
224225
Refresh();
@@ -711,7 +712,6 @@ struct Document {
711712
hover.g = nullptr;
712713
redrawpending = true;
713714
sys->UpdateStatus(selected);
714-
sys->UpdateAmountStatus(selected);
715715
#ifdef __WXGTK__
716716
// wxWidgets (wxGTK) does not always automatically update the scrollbar
717717
// to new canvas size and current position within after zoom so force it manually

0 commit comments

Comments
 (0)