From c031a276d57f02af4da24432af48fa9fc2376566 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 18 Nov 2019 21:17:22 +1100 Subject: Fix recently introduced ncurses redraw artifact --- src/ncurses_ui.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 683fa84a..cd036b34 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -94,6 +94,8 @@ void NCursesUI::Window::draw(Palette& palette, ConstArrayView atoms #endif }; + wbkgdset(win, COLOR_PAIR(palette.get_color_pair(default_face))); + ColumnCount column = getcurx(win); for (const DisplayAtom& atom : atoms) { @@ -113,10 +115,7 @@ void NCursesUI::Window::draw(Palette& palette, ConstArrayView atoms } if (column < size.column) - { - wbkgdset(win, COLOR_PAIR(palette.get_color_pair(default_face))); wclrtoeol(win); - } } constexpr int NCursesUI::default_shift_function_key; -- cgit v1.2.3