From 54d35472c0f2ac755636fca1a7ab69219010c44a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 14 Nov 2018 17:47:44 +1100 Subject: [PATCH] Fix spurious redraw m_last_setup was not storing the actual position that was used to redraw the window, but the previous one, leading to an additional spurious redraw immediatly after (triggered by window position not believed to be the one at last redraw). Fixes #2562 --- src/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cc b/src/window.cc index 1b814b8f..a116abc4 100644 --- a/src/window.cc +++ b/src/window.cc @@ -170,8 +170,8 @@ const DisplayBuffer& Window::update_display_buffer(const Context& context) m_display_buffer.optimize(); - m_last_setup = build_setup(context); set_position(setup.window_pos); + m_last_setup = build_setup(context); if (profile and not (buffer().flags() & Buffer::Flags::Debug)) {