aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-28 13:17:15 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-28 13:21:49 +0200
commit57ffc7e18a1ac0b44d14fd8bc61442b7651dcd02 (patch)
treedcc613b72f9056955d2417a971a6ff84f88f15d4
parent0b123867775b74fb7d247ea970f01d26423264b7 (diff)
downloadvis-57ffc7e18a1ac0b44d14fd8bc61442b7651dcd02.tar.gz
vis-57ffc7e18a1ac0b44d14fd8bc61442b7651dcd02.tar.xz
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.
-rw-r--r--ui-curses.c7
1 files changed, 7 insertions, 0 deletions
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);