Implicitly activate backwards search when replacement string contains \n, to overcome the multi line bug described in previous commit. Suggestion from michaelgang, see http://www.heidisql.com/forum.php?t=8977

This commit is contained in:
Ansgar Becker
2011-08-18 10:50:59 +00:00
parent fe2d5149a5
commit da96a7c412

View File

@@ -96,7 +96,9 @@ begin
if grpOrigin.ItemIndex = 1 then Include(Options, ssoEntireScope);
if grpScope.ItemIndex = 1 then Include(Options, ssoSelectedOnly);
if ModalResult = mrAll then Include(Options, ssoReplaceAll);
// Work around multi line bug in SynEdit
if (ssoReplaceAll in Options) and (Pos('\n', comboReplace.Text) > 0) then
Include(Options, ssoBackwards);
end;