aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-19 14:12:20 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-19 14:12:20 +1100
commit6b444111ecfe47a3f94293c3959cf197e3415735 (patch)
treebf90b6915dcb2f45f22d3e2377a4252ec80c9259 /src/Editor.cxx
parent9659ea34246320bd9872740d1ee6a5c9ae9066c6 (diff)
downloadscintilla-mirror-6b444111ecfe47a3f94293c3959cf197e3415735.tar.gz
Add Platform::Supports for SupportsFeature API.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 2001eafaf..5877239f0 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5190,8 +5190,9 @@ void Editor::QueueIdleWork(WorkItems items, Sci::Position upTo) {
workNeeded.Need(items, upTo);
}
-int Editor::SupportsFeature(int /* feature */) {
- return 0;
+int Editor::SupportsFeature(int feature) {
+ AutoSurface surface(this);
+ return surface->Supports(feature);
}
bool Editor::PaintContains(PRectangle rc) {