From b95c0d247d1c89ca60c724c95201e3d410b5a318 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Mon, 6 Mar 2023 18:16:28 +0100 Subject: Terminal: Fix "altscreen" handling When "altscreen" is enabled ( e.g. when starting nano ), the terminal switches into an alternate mode without scrollback buffer. This was not correctly handled where the scrollback buffer would stay active. Change-Id: I443d26383d9cd908befcd24a837ecf84c0c1e849 Reviewed-by: Cristian Adam Reviewed-by: --- src/plugins/terminal/terminalwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/terminal/terminalwidget.cpp') diff --git a/src/plugins/terminal/terminalwidget.cpp b/src/plugins/terminal/terminalwidget.cpp index 8df6e3c02a..b40110e653 100644 --- a/src/plugins/terminal/terminalwidget.cpp +++ b/src/plugins/terminal/terminalwidget.cpp @@ -278,6 +278,8 @@ void TerminalWidget::setupSurface() configBlinkTimer(); }); connect(m_surface.get(), &Internal::TerminalSurface::altscreenChanged, this, [this] { + updateScrollBars(); + updateViewport(); setSelection(std::nullopt); }); connect(m_surface.get(), &Internal::TerminalSurface::unscroll, this, [this] { -- cgit v1.2.1