aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
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.