From 5661e39ca742e283b6c5221c56852c7df1602300 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 --- src/c_consolebuffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/c_consolebuffer.cpp b/src/c_consolebuffer.cpp index 3b210d9d0..4541422e4 100644 --- a/src/c_consolebuffer.cpp +++ b/src/c_consolebuffer.cpp @@ -123,6 +123,8 @@ void FConsoleBuffer::FormatText(FFont *formatfont, int displaywidth) { if (formatfont != mLastFont || displaywidth != mLastDisplayWidth || mBufferWasCleared) { + if (mBufferWasCleared) + mLastLineNeedsUpdate = false; m_BrokenConsoleText.Clear(); mBrokenStart.Clear(); mBrokenStart.Push(0);