From 721d52df9cb90af8d1545093a2304023f1affd14 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 19 Mar 2021 09:23:09 +1100 Subject: Add SupportsFeature API but leave empty for now with no features defined. --- src/Editor.cxx | 7 +++++++ src/Editor.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src') 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(wParam)); + case SCI_SUPPORTSFEATURE: + return SupportsFeature(static_cast(wParam)); + case SCI_ADDUNDOACTION: pdoc->AddUndoAction(static_cast(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); -- cgit v1.2.3