Remove unneeded uses of NCurses WINDOW*
intrflush and meta have a WINDOW* parameter that is documented as always ignored.
This commit is contained in:
parent
afd45c6755
commit
4cc187a54f
|
@ -380,6 +380,8 @@ NCursesUI::NCursesUI()
|
||||||
start_color();
|
start_color();
|
||||||
use_default_colors();
|
use_default_colors();
|
||||||
set_escdelay(25);
|
set_escdelay(25);
|
||||||
|
intrflush(nullptr, false);
|
||||||
|
meta(nullptr, true);
|
||||||
|
|
||||||
enable_mouse(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});
|
m_window.create({0, 0}, {ws.ws_row, ws.ws_col});
|
||||||
kak_assert(m_window);
|
kak_assert(m_window);
|
||||||
intrflush(m_window.win, false);
|
|
||||||
keypad(m_window.win, not m_builtin_key_parser);
|
keypad(m_window.win, not m_builtin_key_parser);
|
||||||
meta(m_window.win, true);
|
|
||||||
|
|
||||||
m_dimensions = DisplayCoord{ws.ws_row-1, ws.ws_col};
|
m_dimensions = DisplayCoord{ws.ws_row-1, ws.ws_col};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user