diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-11-04 21:51:03 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-11-05 08:04:58 +1100 |
| commit | 6f3124d678bc2c2d2780b06d899ea6adefb58da3 (patch) | |
| tree | 57e7873f6ebf249de5fd4feefe2895b1ed346cc4 /src/ncurses_ui.hh | |
| parent | 0f292d343b17a404f560308d8ac6bf6af52add3a (diff) | |
Split clearing to end of line out of NCursesUI::Window::draw
Explicitely clear instead of relying on a brittle heuristic.
Diffstat (limited to 'src/ncurses_ui.hh')
| -rw-r--r-- | src/ncurses_ui.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ncurses_ui.hh b/src/ncurses_ui.hh index 93aad324..e2d2572a 100644 --- a/src/ncurses_ui.hh +++ b/src/ncurses_ui.hh @@ -101,8 +101,9 @@ private: void destroy(); void refresh(bool force); void move_cursor(DisplayCoord coord); + void clear_to_eol(Palette& palette, const Face& face); void draw(Palette& palette, ConstArrayView<DisplayAtom> atoms, - ColumnCount width, const Face& default_face); + const Face& default_face); explicit operator bool() const { return win; } |
