- change: position caret to (1,1) when create a new file using editor's new file template
This commit is contained in:
parent
b2585f567a
commit
5557d9c103
1
NEWS.md
1
NEWS.md
|
@ -6,6 +6,7 @@ Red Panda C++ Version 1.1.2
|
|||
- fix: select all shouldn't set file's modified flag
|
||||
- enhancement: add (return)type info for functions/varaibles/typedefs in the class browser panel
|
||||
- enhancement: autolink add "force utf8" property (mainly for raylib)
|
||||
- change: position caret to (1,1) when create a new file using editor's new file template
|
||||
|
||||
Red Panda C++ Version 1.1.1
|
||||
- enhancement: adjust the appearance of problem case's input/output/expected control
|
||||
|
|
|
@ -165,6 +165,7 @@ Editor::Editor(QWidget *parent, const QString& filename,
|
|||
QString fileTemplate = pMainWindow->codeSnippetManager()->newFileTemplate();
|
||||
if (!fileTemplate.isEmpty()) {
|
||||
insertCodeSnippet(fileTemplate);
|
||||
setCaretPosition(1,1);
|
||||
mCanAutoSave = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue