fix(editor): command bar selects all on press enter

This commit is contained in:
maelstrom 2025-07-12 01:39:06 +02:00
parent e40b594ae5
commit 783fd17563

View file

@ -22,6 +22,9 @@ void CommandEdit::executeCommand() {
// Output
Logger::infof("> %s", command.c_str());
// Select all so that the user can type over it
this->selectAll();
// Execute via Lua
auto context = gDataModel->GetService<ScriptContext>();
lua_State* L = context->state;