[Scummvm-git-logs] scummvm master -> d655a3be1ccd13ca9134e59fdc5661011db8fbc9

antoniou79 noreply at scummvm.org
Wed Apr 13 09:32:53 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:
d655a3be1c GUI: Rever fix for not adding empty user input in Console history


Commit: d655a3be1ccd13ca9134e59fdc5661011db8fbc9
    https://github.com/scummvm/scummvm/commit/d655a3be1ccd13ca9134e59fdc5661011db8fbc9
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2022-04-13T12:32:09+03:00

Commit Message:
GUI: Rever fix for not adding empty user input in Console history

This reverts commit 27c95858ba04dd56ae6f328266b4b8f11c9b36d9.

Changed paths:
    gui/console.cpp


diff --git a/gui/console.cpp b/gui/console.cpp
index 20b657ab7ec..df81e17370f 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 && !getUserInput().empty())
+	if (_historyLine == 0 && direction > 0)
 		// Save current line in history
 		_history[_historyIndex] = getUserInput();
 




More information about the Scummvm-git-logs mailing list