From fa4c486b69579d34b8eef1537df083d476069d2e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 24 Jun 2015 13:35:46 +0100 Subject: [PATCH] Always redraw status when redrawing the main window That is needed so that on resize the status line does not disappear --- src/client.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client.cc b/src/client.cc index 5bc73c45..74fcd67e 100644 --- a/src/client.cc +++ b/src/client.cc @@ -148,11 +148,13 @@ void Client::redraw_ifn() Window& window = context().window(); UserInterface& ui = context().ui(); - if (window.needs_redraw(context())) + const bool needs_redraw = window.needs_redraw(context()); + if (needs_redraw) ui.draw(window.update_display_buffer(context()), default_face); DisplayLine mode_line = generate_mode_line(); - if (m_status_line.atoms() != m_pending_status_line.atoms() or + if (needs_redraw or + m_status_line.atoms() != m_pending_status_line.atoms() or mode_line.atoms() != m_mode_line.atoms()) { m_mode_line = std::move(mode_line);