=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/screen-write.c,v retrieving revision 1.133 retrieving revision 1.134 diff -c -r1.133 -r1.134 *** src/usr.bin/tmux/screen-write.c 2017/11/02 22:00:42 1.133 --- src/usr.bin/tmux/screen-write.c 2017/11/03 17:02:33 1.134 *************** *** 1,4 **** ! /* $OpenBSD: screen-write.c,v 1.133 2017/11/02 22:00:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: screen-write.c,v 1.134 2017/11/03 17:02:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 403,408 **** --- 403,410 ---- cy = s->cy; for (yy = py; yy < py + ny; yy++) { + if (yy >= gd->hsize + gd->sy) + break; cx = s->cx; for (xx = px; xx < px + nx; xx++) { if (xx >= gd->linedata[yy].cellsize)