diff options
author | 2017-06-04 17:17:37 -0400 | |
---|---|---|
committer | 2017-06-04 17:17:37 -0400 | |
commit | b82ab307b7ee8bcc547aa076c17355ad7bb7ea24 (patch) | |
tree | c0cb11ddeb8e3d92726b30ae8f19a4d1ffe7fccd /src/scintilla.patch | |
parent | f8b7da30c0ad6fab113da731f53f261c917718d6 (diff) | |
download | textadept-b82ab307b7ee8bcc547aa076c17355ad7bb7ea24.tar.gz textadept-b82ab307b7ee8bcc547aa076c17355ad7bb7ea24.zip |
Fixed start-anchored "find prev" TRE regex searches; src/scintilla.patch
Diffstat (limited to 'src/scintilla.patch')
-rw-r--r-- | src/scintilla.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scintilla.patch b/src/scintilla.patch index ac950c56..6a836ac6 100644 --- a/src/scintilla.patch +++ b/src/scintilla.patch @@ -111,7 +111,7 @@ diff -r bfdfb44eb777 src/Document.cxx + int repetitions = 1000; // break out of infinite loop + while (success && pmatch[0].rm_eo <= endPos && repetitions--) { + success = tre_regnexec(&preg, string + pos + 1, len - (pos + 1), 10, -+ pmatch, eflags) == REG_OK; ++ pmatch, eflags | REG_NOTBOL) == REG_OK; + if (success) { + for (int i = 0; i < 10 && pmatch[i].rm_so != -1; i++) + pmatch[i].rm_so += pos + 1, pmatch[i].rm_eo += pos + 1; // adjust |