=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/grid-view.c,v retrieving revision 1.16 retrieving revision 1.17 diff -c -r1.16 -r1.17 *** src/usr.bin/tmux/grid-view.c 2014/04/17 14:45:49 1.16 --- src/usr.bin/tmux/grid-view.c 2014/11/08 12:58:31 1.17 *************** *** 1,4 **** ! /* $OpenBSD: grid-view.c,v 1.16 2014/04/17 14:45:49 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: grid-view.c,v 1.17 2014/11/08 12:58:31 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 184,190 **** px = grid_view_x(gd, px); py = grid_view_y(gd, py); ! sx = grid_view_x(gd, gd->sx); if (px == sx - 1) grid_clear(gd, px, py, 1, 1); --- 184,190 ---- px = grid_view_x(gd, px); py = grid_view_y(gd, py); ! sx = grid_view_x(gd, gd->linedata[py].cellsize); if (px == sx - 1) grid_clear(gd, px, py, 1, 1); *************** *** 201,207 **** px = grid_view_x(gd, px); py = grid_view_y(gd, py); ! sx = grid_view_x(gd, gd->sx); grid_move_cells(gd, px, px + nx, py, sx - px - nx); grid_clear(gd, sx - nx, py, px + nx - (sx - nx), 1); --- 201,207 ---- px = grid_view_x(gd, px); py = grid_view_y(gd, py); ! sx = grid_view_x(gd, gd->linedata[py].cellsize); grid_move_cells(gd, px, px + nx, py, sx - px - nx); grid_clear(gd, sx - nx, py, px + nx - (sx - nx), 1);