From 783fd17563f3045f068c3ef37ccee3594bcc9de9 Mon Sep 17 00:00:00 2001 From: maelstrom Date: Sat, 12 Jul 2025 01:39:06 +0200 Subject: [PATCH] fix(editor): command bar selects all on press enter --- editor/script/commandedit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/script/commandedit.cpp b/editor/script/commandedit.cpp index 1825913..8ec85f9 100644 --- a/editor/script/commandedit.cpp +++ b/editor/script/commandedit.cpp @@ -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(); lua_State* L = context->state;