aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2022-03-05 20:13:08 +1100
committerZufu Liu <unknown>2022-03-05 20:13:08 +1100
commitbaff47cdde385cc15b39ab93fca5f41db795d6bc (patch)
treee6e228fe16231e52c1bcdb55dc0a91ca793158d5 /src/Editor.cxx
parentbbfeaf78ee634c24bd7fcb1c7faff207473e71e4 (diff)
downloadscintilla-mirror-baff47cdde385cc15b39ab93fca5f41db795d6bc.tar.gz
Feature [feature-requests:#1432] Simplify setting surface modes with
EditModel::CurrentSurfaceMode.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 34fcd4220..f048a5030 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1706,6 +1706,7 @@ void Editor::PaintSelMargin(Surface *surfaceWindow, const PRectangle &rc) {
} else {
surface = surfaceWindow;
}
+ surface->SetMode(CurrentSurfaceMode());
// Clip vertically to paint area to avoid drawing line numbers
if (rcMargin.bottom > rc.bottom)