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.h | |
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.h')
-rw-r--r-- | src/Editor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h index f3e23ef5b..fd140a800 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -688,14 +688,14 @@ public: if (ed->wMain.GetID()) { surf = Surface::Allocate(ed->technology); surf->Init(ed->wMain.GetID()); - surf->SetMode(SurfaceMode(ed->CodePage(), ed->BidirectionalR2L())); + surf->SetMode(ed->CurrentSurfaceMode()); } } AutoSurface(SurfaceID sid, Editor *ed, std::optional<Scintilla::Technology> technology = {}) { if (ed->wMain.GetID()) { surf = Surface::Allocate(technology ? *technology : ed->technology); surf->Init(sid, ed->wMain.GetID()); - surf->SetMode(SurfaceMode(ed->CodePage(), ed->BidirectionalR2L())); + surf->SetMode(ed->CurrentSurfaceMode()); } } // Deleted so AutoSurface objects can not be copied. |