From bed04e6a0a9cb037cd27ef587a5469e62a1feb3e Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Fri, 12 May 2023 22:22:49 +0200 Subject: [PATCH] [vtbackend] Fixes statusline being misplaced after resize when being in alt screen (#1091) Signed-off-by: Christian Parpart --- metainfo.xml | 1 + src/vtbackend/Terminal.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/metainfo.xml b/metainfo.xml index a9da9917eb..bda3e76cca 100644 --- a/metainfo.xml +++ b/metainfo.xml @@ -111,6 +111,7 @@
  • Fixes cycling between different selection modes (by speed-clicking) not properly working.
  • Fixes tcsh shell integration not working (#1074).
  • Fixes `[count]w` ignoring the `[count]` parameter in modal mode.
  • +
  • Fixes statusline being misplaced after resize when being in alt screen (#1091).
  • Improves mouse selection to be more natural extending into new grid cells.
  • Adds `profiles.*.permissions.display_host_writable_statusline` to allow the user to intervene in `DECSSDT 2` VT sequence to show the host writable statusline.
  • Adds config entry `input_method_editor` colorscheme key to allow customization of the IME (input method editor) region (#1058).
  • diff --git a/src/vtbackend/Terminal.cpp b/src/vtbackend/Terminal.cpp index f641067954..6e361223c3 100644 --- a/src/vtbackend/Terminal.cpp +++ b/src/vtbackend/Terminal.cpp @@ -478,7 +478,7 @@ void Terminal::fillRenderBufferInternal(RenderBuffer& output, bool includeSelect if (_settings.statusDisplayPosition == StatusDisplayPosition::Bottom) { - baseLine += _primaryScreen.pageSize().lines.as(); + baseLine += pageSize().lines.as(); fillRenderBufferStatusLine(output, includeSelection, baseLine); } }