Only skip moving the cursor if it is already in the last position _on

the same line_, fixes redraw bug reported by patrick keshishian.
pull/705/head
nicm 2016-12-07 09:16:55 +00:00
parent a8f3ad4487
commit 5ea143f521
1 changed files with 2 additions and 1 deletions

3
tty.c
View File

@ -1153,7 +1153,8 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx)
tty_cursor_pane(tty, ctx, 0, ctx->ocy + 1);
else
tty_cursor_pane(tty, ctx, 0, ctx->ocy);
} else if (tty->cx != tty->sx - 1) {
} else if (tty->cy != ctx->yoff + ctx->ocy ||
tty->cx < tty->sx) {
/*
* The cursor isn't in the last position already, so
* move as far right as possible and redraw the last