From 57ffc7e18a1ac0b44d14fd8bc61442b7651dcd02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 28 Jul 2015 13:17:15 +0200 Subject: ui: try to fixup unicode display issues The handling of combining characters needs to be reviewed there are still strange things going on. This only covers up some of the artifacts. --- ui-curses.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui-curses.c b/ui-curses.c index 9ab394b..6c98af9 100644 --- a/ui-curses.c +++ b/ui-curses.c @@ -369,6 +369,13 @@ static void ui_window_draw_text(UiWin *w, const Line *line) { wattrset(win->win, attr); waddstr(win->win, l->cells[x].data); } + /* try to fixup display issues, in theory we should always output a full line */ + int x, y; + getyx(win->win, y, x); + (void)y; + wattrset(win->win, A_NORMAL); + for (; 0 < x && x < width; x++) + waddstr(win->win, " "); } wclrtobot(win->win); -- cgit v1.2.3