diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-07-28 13:17:15 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-07-28 13:21:49 +0200 |
| commit | 57ffc7e18a1ac0b44d14fd8bc61442b7651dcd02 (patch) | |
| tree | dcc613b72f9056955d2417a971a6ff84f88f15d4 /ui-curses.c | |
| parent | 0b123867775b74fb7d247ea970f01d26423264b7 (diff) | |
| download | vis-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.
Diffstat (limited to 'ui-curses.c')
| -rw-r--r-- | ui-curses.c | 7 |
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); |
