diff options
author | Zufu Liu <unknown> | 2022-03-05 20:13:08 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2022-03-05 20:13:08 +1100 |
commit | baff47cdde385cc15b39ab93fca5f41db795d6bc (patch) | |
tree | e6e228fe16231e52c1bcdb55dc0a91ca793158d5 /src/Editor.cxx | |
parent | bbfeaf78ee634c24bd7fcb1c7faff207473e71e4 (diff) | |
download | scintilla-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.cxx | 1 |
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) |