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 /grid-view.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 'grid-view.c')
-rw-r--r-- | grid-view.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/grid-view.c b/grid-view.c index e36144f0..bde624cc 100644 --- a/grid-view.c +++ b/grid-view.c @@ -52,28 +52,6 @@ grid_view_set_cell( grid_set_cell(gd, grid_view_x(gd, px), grid_view_y(gd, py), gc); } -/* Get UTF-8 for reading. */ -const struct grid_utf8 * -grid_view_peek_utf8(struct grid *gd, u_int px, u_int py) -{ - return (grid_peek_utf8(gd, grid_view_x(gd, px), grid_view_y(gd, py))); -} - -/* Get UTF-8 for writing. */ -struct grid_utf8 * -grid_view_get_utf8(struct grid *gd, u_int px, u_int py) -{ - return (grid_get_utf8(gd, grid_view_x(gd, px), grid_view_y(gd, py))); -} - -/* Set UTF-8. */ -void -grid_view_set_utf8( - struct grid *gd, u_int px, u_int py, const struct grid_utf8 *gu) -{ - grid_set_utf8(gd, grid_view_x(gd, px), grid_view_y(gd, py), gu); -} - /* Clear into history. */ void grid_view_clear_history(struct grid *gd) @@ -87,7 +65,7 @@ grid_view_clear_history(struct grid *gd) last = 0; for (yy = 0; yy < gd->sy; yy++) { gl = &gd->linedata[grid_view_y(gd, yy)]; - if (gl->cellsize != 0 || gl->utf8size != 0) + if (gl->cellsize != 0) last = yy + 1; } if (last == 0) |