From c16b9a2ec409212e22ec8e51f33a165f0de80889 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 25 Dec 2015 07:17:36 +0000 Subject: [PATCH] Set window dimensions when setting it in a context --- src/context.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/context.cc b/src/context.cc index 697df468..d45a6aa9 100644 --- a/src/context.cc +++ b/src/context.cc @@ -75,6 +75,8 @@ void Context::set_window(Window& window) { kak_assert(&window.buffer() == &buffer()); m_window.reset(&window); + if (has_ui()) + m_window->set_dimensions(ui().dimensions()); } void Context::print_status(DisplayLine status) const