From 50eca9beb97b7c69f15d1ce96dddb5e2efc3a0e8 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 13 Apr 2018 08:48:23 +1000 Subject: Fix bug with regular expression searches failing to match at line start or end. This was a work-around for infinite loops when replacing empty matches and this is now the application's responsibility. --- doc/ScintillaHistory.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/ScintillaHistory.html') diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index d19e64383..87bfa49ab 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -545,6 +545,14 @@ Set the last X chosen when SCI_REPLACESEL called to ensure macros work when text insertion followed by caret up or down. +
  • + Bugs fixed in regular expression searches in Scintilla where some matches did not occur in an + effort to avoid infinite loops when replacing on empty matches like "^" and "$". + Applications should always handle empty matches in a way that avoids infinite loops, commonly + by incrementing the search position after replacing an empty match. + SciTE fixes a bug where replacing "^" always matched on the first line even when it was an + "in selection" replace and the selection started after the line start. +
  • Release 4.0.4 -- cgit v1.2.3