-/* $OpenBSD: tty.c,v 1.260 2017/04/17 06:40:32 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.261 2017/04/17 08:10:44 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
tty_putcode(tty, TTYC_EL1);
cleared = 1;
}
- tty_cursor(tty, ox, oy + py);
+ if (sx != 0)
+ tty_cursor(tty, ox, oy + py);
memcpy(&last, &grid_default_cell, sizeof last);
len = 0;
if (!cleared && sx < tty->sx) {
tty_default_attributes(tty, wp, 8);
-
tty_cursor(tty, ox + sx, oy + py);
if (sx != screen_size_x(s) &&
ox + screen_size_x(s) >= tty->sx &&