From d5cb48b47643d692495ceaf5463308b443cf7c10 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 3b210d9d08..4541422e45 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);