mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 09:59:06 +02:00
IDE: Explicitly set caret pos for new files
git-svn-id: trunk@26022 -
This commit is contained in:
parent
aaa3a1a5a9
commit
daaf81101d
@ -7877,6 +7877,7 @@ begin
|
||||
MainIDEBar.itmFileCloseAll.Enabled:=True;
|
||||
NewSrcEdit.SyntaxHighlighterType:=NewUnitInfo.EditorInfo[0].SyntaxHighlighter;
|
||||
NewUnitInfo.GetClosedOrNewEditorInfo.EditorComponent := NewSrcEdit;
|
||||
NewSrcEdit.EditorComponent.CaretXY := Point(1,1);
|
||||
|
||||
// create component
|
||||
AncestorType:=NewFileDescriptor.ResourceClass;
|
||||
|
Loading…
Reference in New Issue
Block a user