aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2008-08-03 08:22:26 +0000
committernyamatongwe <devnull@localhost>2008-08-03 08:22:26 +0000
commit24dd8727e80b11543cbc5898e21d283228d81f83 (patch)
tree4485bac5f0dff5c1d74dfc88a4a0ff0ec6670325 /src
parent1174ecf6decf3c0dea9ef2348bcb91980e3f7b29 (diff)
downloadscintilla-mirror-24dd8727e80b11543cbc5898e21d283228d81f83.tar.gz
Fix for bug #2031167 RegExp "^[^(]+$" matches empty line.
Diffstat (limited to 'src')
-rw-r--r--src/RESearch.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/RESearch.cxx b/src/RESearch.cxx
index b1b226a05..be1d235de 100644
--- a/src/RESearch.cxx
+++ b/src/RESearch.cxx
@@ -853,6 +853,8 @@ int RESearch::PMatch(CharacterIndexer &ci, int lp, int endp, char *ap) {
return NOTFOUND;
break;
case CCL:
+ if (lp >= endp)
+ return NOTFOUND;
c = ci.CharAt(lp++);
if (!isinset(ap,c))
return NOTFOUND;