fix: in option / editor / color scheme 's demo editor, caret not on the first line.

This commit is contained in:
Roy Qu 2024-09-06 15:51:07 +08:00
parent 2c5ff4f956
commit c796208840
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ EditorColorSchemeWidget::EditorColorSchemeWidget(const QString& name, const QStr
ui->editDemo->addSyntaxIssues(8, 9, 16, CompileIssueType::Warning, "[Warning] variable 'numbers' set but not used [-Wunused-but-set-variable]");
ui->editDemo->setCaretY(9);
ui->editDemo->setActiveBreakpointFocus(10,false);
ui->editDemo->setCaretXY(QSynedit::BufferCoord{1,1});
ui->editDemo->reparseDocument();
ui->editDemo->invalidate();
onItemSelectionChanged();