aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2020-07-15 12:08:11 +1000
committerZufu Liu <unknown>2020-07-15 12:08:11 +1000
commitc47a76507f5bfd812604504d3b0246fa45be799e (patch)
tree9beede23572858a217ff61c2c258d81de78b2597 /src/Editor.cxx
parentb46f4cdda3df7c26dc6cc1c55173c3a1559b20f2 (diff)
downloadscintilla-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.cxx5
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;