Update text_editor.cpp
This commit is contained in:
@@ -16,8 +16,8 @@ TextEditorWindow::TextEditorWindow(QWidget* parent, const std::string& filename,
|
|||||||
ZepReplExCommand::Register(zepWidget.GetEditor(), &replProvider);
|
ZepReplExCommand::Register(zepWidget.GetEditor(), &replProvider);
|
||||||
|
|
||||||
// Default to standard mode instead of vim mode, initialize text box
|
// 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().InitWithText(filename, initialText);
|
||||||
|
zepWidget.GetEditor().SetGlobalMode(Zep::ZepMode_Standard::StaticName());
|
||||||
|
|
||||||
// Layout for widgets
|
// Layout for widgets
|
||||||
QVBoxLayout* mainLayout = new QVBoxLayout();
|
QVBoxLayout* mainLayout = new QVBoxLayout();
|
||||||
@@ -41,4 +41,4 @@ TextEditorWindow::TextEditorWindow(QWidget* parent, const std::string& filename,
|
|||||||
|
|
||||||
mainLayout->addWidget(button);
|
mainLayout->addWidget(button);
|
||||||
mainLayout->addWidget(&zepWidget);
|
mainLayout->addWidget(&zepWidget);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user