diff options
author | Thomas Adam <thomas@xteddy.org> | 2016-09-29 12:01:11 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2016-09-29 12:01:11 +0100 |
commit | 19104d592bdeee67fcd2bf1a9232cda99094908b (patch) | |
tree | 5e3ba036d43d127ad0079cb582587b6a68e31491 /screen-write.c | |
parent | c41916ee16cf1398797f209271bd469de4682924 (diff) | |
parent | cf7f3a436a216b1c1008edfd767f11dffc02eb2a (diff) | |
download | rtmux-19104d592bdeee67fcd2bf1a9232cda99094908b.tar.gz rtmux-19104d592bdeee67fcd2bf1a9232cda99094908b.tar.bz2 rtmux-19104d592bdeee67fcd2bf1a9232cda99094908b.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/screen-write.c b/screen-write.c index 94ce359f..2b7fba0b 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1267,10 +1267,10 @@ screen_write_overwrite(struct screen_write_ctx *ctx, struct grid_cell *gc, } /* - * Overwrite any padding cells that belong to a UTF-8 character - * we'll be overwriting with the current character. + * Overwrite any padding cells that belong to any UTF-8 characters we'll be + * overwriting with the current character. */ - if (gc->data.width != 1 || gc->flags & GRID_FLAG_PADDING) { + if (width != 1 || gc->data.width != 1 || gc->flags & GRID_FLAG_PADDING) { xx = s->cx + width - 1; while (++xx < screen_size_x(s)) { grid_view_get_cell(gd, xx, s->cy, &tmp_gc); |