diff options
Diffstat (limited to 'pw.c')
-rw-r--r-- | pw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -446,7 +446,7 @@ static unsigned redraw(char **circbuf, int nlines, unsigned hpos, unsigned hist, if ((stat & stat_bkgnd)) return stat; - if (updln) { + if (updln && snaplines[hist] > 0) { printf("\r\033[%dA", snaplines[hist]); if ((stat & stat_lino) == 0) { for (int i = 0; i < snaplines[hist]; i++) |