=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/grid-view.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/tmux/grid-view.c 2012/01/29 21:31:11 1.10 --- src/usr.bin/tmux/grid-view.c 2013/01/18 02:16:21 1.11 *************** *** 1,4 **** ! /* $OpenBSD: grid-view.c,v 1.10 2012/01/29 21:31:11 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: grid-view.c,v 1.11 2013/01/18 02:16:21 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 52,79 **** 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) --- 52,57 ---- *************** *** 87,93 **** last = 0; for (yy = 0; yy < gd->sy; yy++) { gl = &gd->linedata[grid_view_y(gd, yy)]; ! if (gl->cellsize != 0 || gl->utf8size != 0) last = yy + 1; } if (last == 0) --- 65,71 ---- last = 0; for (yy = 0; yy < gd->sy; yy++) { gl = &gd->linedata[grid_view_y(gd, yy)]; ! if (gl->cellsize != 0) last = yy + 1; } if (last == 0)