mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user