]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/regex.cpp
no changes, just match the number of opening/closing braces to avoid upsetting Vim...
[wxWidgets.git] / src / common / regex.cpp
index f6ca8782913e64e3ec4ddfe6bf99610974e299b8..7a7029c8b562846622156fb0598ffcf16ed6e797 100644 (file)
@@ -515,10 +515,11 @@ int wxRegExImpl::Replace(wxString *text,
     // note that "^" shouldn't match after the first call to Matches() so we
     // use wxRE_NOTBOL to prevent it from happening
     while ( (!maxMatches || countRepl < maxMatches) &&
+             Matches(
 #ifndef WXREGEX_CONVERT_TO_MB
-            Matches(textstr + matchStart,
+                    textstr + matchStart,
 #else
-            Matches(textstr.data() + matchStart,
+                    textstr.data() + matchStart,
 #endif 
                     countRepl ? wxRE_NOTBOL : 0
                     WXREGEX_IF_NEED_LEN(textlen - matchStart)) )