[Scummvm-git-logs] scummvm master -> 27c95858ba04dd56ae6f328266b4b8f11c9b36d9
antoniou79
noreply at scummvm.org
Wed Apr 13 07:41:02 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
27c95858ba GUI: Prevent adding empty user input in Console history
Commit: 27c95858ba04dd56ae6f328266b4b8f11c9b36d9
https://github.com/scummvm/scummvm/commit/27c95858ba04dd56ae6f328266b4b8f11c9b36d9
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2022-04-13T10:39:51+03:00
Commit Message:
GUI: Prevent adding empty user input in Console history
Changed paths:
gui/console.cpp
diff --git a/gui/console.cpp b/gui/console.cpp
index df81e17370f..20b657ab7ec 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -641,7 +641,7 @@ void ConsoleDialog::historyScroll(int direction) {
if (_historySize == 0)
return;
- if (_historyLine == 0 && direction > 0)
+ if (_historyLine == 0 && direction > 0 && !getUserInput().empty())
// Save current line in history
_history[_historyIndex] = getUserInput();
More information about the Scummvm-git-logs
mailing list