diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2013-01-18 02:16:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2013-01-18 02:16:21 +0000 |
commit | fdbfc7e3498e1cdd04e8df58aa1a937ee4d79caa (patch) | |
tree | 48c27a2125d75ac9c1ad6f21a089ae0642bb7bcc /input.c | |
parent | c2e2107063f85c65c0153cb3f201c12e93599038 (diff) | |
download | rtmux-fdbfc7e3498e1cdd04e8df58aa1a937ee4d79caa.tar.gz rtmux-fdbfc7e3498e1cdd04e8df58aa1a937ee4d79caa.tar.bz2 rtmux-fdbfc7e3498e1cdd04e8df58aa1a937ee4d79caa.zip |
Rather than having two grids for each pane, one for ASCII and one for
UTF-8, collapse the two together. Simplifies the code at the expense of
more memory (which can probably be reduced again later).
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -879,8 +879,8 @@ input_clear(struct input_ctx *ictx) int input_print(struct input_ctx *ictx) { - ictx->cell.data = ictx->ch; - screen_write_cell(&ictx->ctx, &ictx->cell, NULL); + grid_cell_one(&ictx->cell, ictx->ch); + screen_write_cell(&ictx->ctx, &ictx->cell); return (0); } @@ -1657,9 +1657,8 @@ input_utf8_close(struct input_ctx *ictx) utf8_append(&ictx->utf8data, ictx->ch); - ictx->cell.flags |= GRID_FLAG_UTF8; - screen_write_cell(&ictx->ctx, &ictx->cell, &ictx->utf8data); - ictx->cell.flags &= ~GRID_FLAG_UTF8; + grid_cell_set(&ictx->cell, &ictx->utf8data); + screen_write_cell(&ictx->ctx, &ictx->cell); return (0); } |