diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-11-18 21:17:22 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-11-18 21:17:22 +1100 |
| commit | c031a276d57f02af4da24432af48fa9fc2376566 (patch) | |
| tree | 09a1c9f1f4f892c28124d9ed59b256d94de415de /src | |
| parent | ba621dedd60fe5088fdeb732e67366ae63b1df46 (diff) | |
Fix recently introduced ncurses redraw artifact
Diffstat (limited to 'src')
| -rw-r--r-- | src/ncurses_ui.cc | 5 |
1 files changed, 2 insertions, 3 deletions
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<DisplayAtom> 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<DisplayAtom> atoms } if (column < size.column) - { - wbkgdset(win, COLOR_PAIR(palette.get_color_pair(default_face))); wclrtoeol(win); - } } constexpr int NCursesUI::default_shift_function_key; |
