diff --git a/src/panda_qt/text_editor.cpp b/src/panda_qt/text_editor.cpp index c189c2ce..a31a829f 100644 --- a/src/panda_qt/text_editor.cpp +++ b/src/panda_qt/text_editor.cpp @@ -16,8 +16,8 @@ TextEditorWindow::TextEditorWindow(QWidget* parent, const std::string& filename, ZepReplExCommand::Register(zepWidget.GetEditor(), &replProvider); // Default to standard mode instead of vim mode, initialize text box - zepWidget.GetEditor().SetGlobalMode(Zep::ZepMode_Standard::StaticName()); zepWidget.GetEditor().InitWithText(filename, initialText); + zepWidget.GetEditor().SetGlobalMode(Zep::ZepMode_Standard::StaticName()); // Layout for widgets QVBoxLayout* mainLayout = new QVBoxLayout(); @@ -41,4 +41,4 @@ TextEditorWindow::TextEditorWindow(QWidget* parent, const std::string& filename, mainLayout->addWidget(button); mainLayout->addWidget(&zepWidget); -} \ No newline at end of file +}