summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-07 17:14:05 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-07 17:16:30 -0400
commit5590509d0569639b9701d39ca7be9d637a3889e0 (patch)
tree033c7f7b79bfb9addcc880f3d4cb77b634ce98d7
parenta3c4f0490c7c70c05de42148d9aedf16149edb58 (diff)
downloadlibvt100-5590509d0569639b9701d39ca7be9d637a3889e0.tar.gz
libvt100-5590509d0569639b9701d39ca7be9d637a3889e0.zip
not sure why i was putting explicit spaces here
-rw-r--r--src/screen.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/screen.c b/src/screen.c
index 8862fa1..d4f0ca1 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -159,8 +159,7 @@ void vt100_screen_show_string_ascii(VT100Screen *vt, char *buf, size_t len)
cell = vt100_screen_cell_at(
vt, vt->grid->cur.row, vt->grid->cur.col - 1);
if (cell->is_wide) {
- cell->len = 1;
- cell->contents[0] = ' ';
+ cell->len = 0;
}
}
}
@@ -196,8 +195,7 @@ void vt100_screen_show_string_utf8(VT100Screen *vt, char *buf, size_t len)
cell = vt100_screen_cell_at(
vt, vt->grid->cur.row, vt->grid->cur.col - 1);
if (cell->is_wide) {
- cell->len = 1;
- cell->contents[0] = ' ';
+ cell->len = 0;
}
}
}