From ff92b4b5d73a1f4477be7794c10a5221068e1863 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 3 Jun 2019 13:12:57 +0300 Subject: [PATCH] - reset internal console state on clear CCMD 'last line needs update' flag cannot be set when console is empty as there are no lines at all in this case https://forum.zdoom.org/viewtopic.php?t=64909 # Conflicts: # src/c_consolebuffer.cpp --- src/c_consolebuffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/c_consolebuffer.cpp b/src/c_consolebuffer.cpp index b96128272..4a2bc9c41 100644 --- a/src/c_consolebuffer.cpp +++ b/src/c_consolebuffer.cpp @@ -259,6 +259,8 @@ void FConsoleBuffer::FormatText(FFont *formatfont, int displaywidth) if (formatfont != mLastFont || displaywidth != mLastDisplayWidth || mBufferWasCleared) { FreeBrokenText(); + if (mBufferWasCleared) + mLastLineNeedsUpdate = false; m_BrokenConsoleText.Clear(); mBrokenStart.Clear(); mBrokenStart.Push(0);