From a42d8ba2dd239b89e409d4612fbc7f2516defb4a Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 9 Jun 2026 13:46:00 +0100 Subject: [PATCH] Don't push blank lines into python REPL history --- qrenderdoc/Windows/PythonShell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/PythonShell.cpp b/qrenderdoc/Windows/PythonShell.cpp index b4ffdf636..9d15c1504 100644 --- a/qrenderdoc/Windows/PythonShell.cpp +++ b/qrenderdoc/Windows/PythonShell.cpp @@ -1108,7 +1108,8 @@ void PythonShell::on_execute_clicked() appendText(ui->interactiveOutput, command + lit("\n")); - history.push_front(command); + if(!command.trimmed().isEmpty()) + history.push_front(command); historyidx = -1; ui->lineInput->clear();