mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Restore previous scroll position after saving routine, trigger, event or view. See https://www.heidisql.com/forum.php?t=40291
This commit is contained in:
@ -114,6 +114,7 @@ begin
|
||||
Mainform.SynCompletionProposal.AddEditor(SynMemoBody);
|
||||
Parameters := TRoutineParamList.Create;
|
||||
editName.MaxLength := NAME_LEN;
|
||||
FMainSynMemo := SynMemoBody;
|
||||
end;
|
||||
|
||||
|
||||
@ -164,6 +165,7 @@ begin
|
||||
lblDisabledWhy.Visible := Obj.Body = '';
|
||||
PageControlMain.Enabled := not lblDisabledWhy.Visible;
|
||||
SynMemoBody.Enabled := PageControlMain.Enabled;
|
||||
SynMemoBody.TopLine := FMainSynMemoPreviousTopLine;
|
||||
end else begin
|
||||
editName.Text := '';
|
||||
end;
|
||||
|
Reference in New Issue
Block a user