diff options
author | nyamatongwe <devnull@localhost> | 2008-08-03 08:22:26 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2008-08-03 08:22:26 +0000 |
commit | 24dd8727e80b11543cbc5898e21d283228d81f83 (patch) | |
tree | 4485bac5f0dff5c1d74dfc88a4a0ff0ec6670325 /src | |
parent | 1174ecf6decf3c0dea9ef2348bcb91980e3f7b29 (diff) | |
download | scintilla-mirror-24dd8727e80b11543cbc5898e21d283228d81f83.tar.gz |
Fix for bug #2031167 RegExp "^[^(]+$" matches empty line.
Diffstat (limited to 'src')
-rw-r--r-- | src/RESearch.cxx | 2 |
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; |