From 418c6eb13bf78cbb355ea424cd75ff7511476b2f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 14 Aug 2022 19:22:37 +0200 Subject: [PATCH] Terminal: Update window size increments on terminal font change This fixes an issue where the window resize overlay would display inaccurate "columns x rows" after a font change. This happened because we kept using size increments derived from the original font. --- Userland/Applications/Terminal/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp index 2458cd8065..c309f8d9d7 100644 --- a/Userland/Applications/Terminal/main.cpp +++ b/Userland/Applications/Terminal/main.cpp @@ -89,6 +89,7 @@ public: if (font.is_null()) font = Gfx::FontDatabase::default_fixed_width_font(); m_parent_terminal.set_font_and_resize_to_fit(*font); + m_parent_terminal.apply_size_increments_to_window(*m_parent_terminal.window()); m_parent_terminal.window()->resize(m_parent_terminal.size()); } else if (group == "Cursor" && key == "Shape") { auto cursor_shape = VT::TerminalWidget::parse_cursor_shape(value).value_or(VT::CursorShape::Block);