From 1a6156d8fdc1ff53cd5987a0e6d2d3eeaaadc2ed Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 30 Nov 2016 13:20:02 +0000 Subject: [PATCH] Fix check for cursor at end of line. --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 2e4e9f4c..014a99fb 100644 --- a/tty.c +++ b/tty.c @@ -1153,7 +1153,7 @@ 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) { + } else if (tty->cx != tty->sx - 1) { /* * The cursor isn't in the last position already, so * move as far right as possible and redraw the last