From 4cc187a54f1a27ba10fd8274a5a44687b759bd05 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 5 Sep 2019 00:19:58 +1000 Subject: [PATCH] Remove unneeded uses of NCurses WINDOW* intrflush and meta have a WINDOW* parameter that is documented as always ignored. --- src/ncurses_ui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index b24aa498..d2e40b29 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -380,6 +380,8 @@ NCursesUI::NCursesUI() start_color(); use_default_colors(); set_escdelay(25); + intrflush(nullptr, false); + meta(nullptr, true); enable_mouse(true); @@ -550,9 +552,7 @@ void NCursesUI::check_resize(bool force) m_window.create({0, 0}, {ws.ws_row, ws.ws_col}); kak_assert(m_window); - intrflush(m_window.win, false); keypad(m_window.win, not m_builtin_key_parser); - meta(m_window.win, true); m_dimensions = DisplayCoord{ws.ws_row-1, ws.ws_col};