aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-03-14 02:53:42 +0000
committernyamatongwe <unknown>2010-03-14 02:53:42 +0000
commitabbacd88fd6cbf6b093d5f2e6335f1f5aa4a57f3 (patch)
tree84eae42e352b5a6281451bec7213415c7998d650
parent0630dbd115f649f8ad1fde1c97b4c6a971287478 (diff)
downloadscintilla-mirror-abbacd88fd6cbf6b093d5f2e6335f1f5aa4a57f3.tar.gz
Fixed bug where number of character in regular expression replace was
miscounting size of result which could lead to NULs in result.
-rw-r--r--src/Document.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 954ff9daf..b1130bd09 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -1737,6 +1737,7 @@ const char *BuiltinRegex::SubstituteByPosition(Document *doc, const char *text,
case 'r':
case 't':
case 'v':
+ case '\\':
i++;
}
lenResult++;