diff options
| author | Zufu Liu <unknown> | 2020-07-15 12:08:11 +1000 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2020-07-15 12:08:11 +1000 |
| commit | c47a76507f5bfd812604504d3b0246fa45be799e (patch) | |
| tree | 9beede23572858a217ff61c2c258d81de78b2597 /src/Editor.cxx | |
| parent | b46f4cdda3df7c26dc6cc1c55173c3a1559b20f2 (diff) | |
| download | scintilla-mirror-c47a76507f5bfd812604504d3b0246fa45be799e.tar.gz | |
Backport: Feature [feature-requests:1368]. Add BraceMatchNext API.
Backport of changeset 8406:a2ce85a55dfa.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 104f6d500..630a6f69e 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7632,7 +7632,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_BRACEMATCH: // wParam is position of char to find brace for, // lParam is maximum amount of text to restyle to find it - return pdoc->BraceMatch(static_cast<Sci::Position>(wParam), lParam); + return pdoc->BraceMatch(static_cast<Sci::Position>(wParam), lParam, 0, false); + + case SCI_BRACEMATCHNEXT: + return pdoc->BraceMatch(static_cast<Sci::Position>(wParam), 0, lParam, true); case SCI_GETVIEWEOL: return vs.viewEOL; |
