aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-19 09:23:09 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-19 09:23:09 +1100
commit721d52df9cb90af8d1545093a2304023f1affd14 (patch)
tree1a3e495dd5f055a646af55027c6af58d9665f0d2 /src
parent35d3f2be76c7075bf106a246544a002d03a5d042 (diff)
downloadscintilla-mirror-721d52df9cb90af8d1545093a2304023f1affd14.tar.gz
Add SupportsFeature API but leave empty for now with no features defined.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx7
-rw-r--r--src/Editor.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 786d1bb95..28159fd57 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5177,6 +5177,10 @@ void Editor::QueueIdleWork(WorkNeeded::workItems items, Sci::Position upTo) {
workNeeded.Need(items, upTo);
}
+int Editor::SupportsFeature(int /* feature */) {
+ return 0;
+}
+
bool Editor::PaintContains(PRectangle rc) {
if (rc.Empty()) {
return true;
@@ -8150,6 +8154,9 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
case SCI_ALLOCATEEXTENDEDSTYLES:
return vs.AllocateExtendedStyles(static_cast<int>(wParam));
+ case SCI_SUPPORTSFEATURE:
+ return SupportsFeature(static_cast<int>(wParam));
+
case SCI_ADDUNDOACTION:
pdoc->AddUndoAction(static_cast<Sci::Position>(wParam), lParam & UNDO_MAY_COALESCE);
break;
diff --git a/src/Editor.h b/src/Editor.h
index 60742b403..87a904bf1 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -537,6 +537,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
virtual void IdleWork();
virtual void QueueIdleWork(WorkNeeded::workItems items, Sci::Position upTo=0);
+ virtual int SupportsFeature(int feature);
virtual bool PaintContains(PRectangle rc);
bool PaintContainsMargin();
void CheckForChangeOutsidePaint(Range r);