aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
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.h
parentbbfeaf78ee634c24bd7fcb1c7faff207473e71e4 (diff)
downloadscintilla-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.h4
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.