From c7962088401e687ef848cb2a179da0af0e501d35 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 6 Sep 2024 15:51:07 +0800 Subject: [PATCH] fix: in option / editor / color scheme 's demo editor, caret not on the first line. --- RedPandaIDE/settingsdialog/editorcolorschemewidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/RedPandaIDE/settingsdialog/editorcolorschemewidget.cpp b/RedPandaIDE/settingsdialog/editorcolorschemewidget.cpp index 1936a326..0787aecc 100644 --- a/RedPandaIDE/settingsdialog/editorcolorschemewidget.cpp +++ b/RedPandaIDE/settingsdialog/editorcolorschemewidget.cpp @@ -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();