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 | 8aeb0e4b77a0f6905981df5f2d9c4622d55a12fb (patch) | |
tree | 91988ba86d2aabf316a1cb7340c0b181f0a02ba6 /src/Editor.cxx | |
parent | 94e723891ade7b0de0c6dc6a3b294e6ce1fea326 (diff) | |
download | scintilla-mirror-8aeb0e4b77a0f6905981df5f2d9c4622d55a12fb.tar.gz |
Feature [feature-requests:1368]. Add BraceMatchNext API.
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 45cc42804..28fa89120 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7646,7 +7646,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; |