=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/grid.c,v retrieving revision 1.81 retrieving revision 1.82 diff -c -r1.81 -r1.82 *** src/usr.bin/tmux/grid.c 2018/04/18 14:31:42 1.81 --- src/usr.bin/tmux/grid.c 2018/06/03 10:17:30 1.82 *************** *** 1,4 **** ! /* $OpenBSD: grid.c,v 1.81 2018/04/18 14:31:42 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: grid.c,v 1.82 2018/06/03 10:17:30 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 1011,1017 **** * If this is now the last line, there is nothing more to be * done. */ ! if (yy + lines == gd->hsize + gd->sy) break; line = yy + 1 + lines; --- 1011,1017 ---- * If this is now the last line, there is nothing more to be * done. */ ! if (yy + 1 + lines == gd->hsize + gd->sy) break; line = yy + 1 + lines; *************** *** 1021,1026 **** --- 1021,1027 ---- if (gd->linedata[line].cellused == 0) { if (!wrapped) break; + lines++; continue; }