diff options
| author | nicm <nicm> | 2016-11-30 13:20:02 +0000 |
|---|---|---|
| committer | nicm <nicm> | 2016-11-30 13:20:02 +0000 |
| commit | 1a6156d8fdc1ff53cd5987a0e6d2d3eeaaadc2ed (patch) | |
| tree | 8115c656c82d68de03e727d5bc7a67af7427e1d5 | |
| parent | 6b46c62bb49c3ab532d4eba7eee226df2877490b (diff) | |
| download | rtmux-1a6156d8fdc1ff53cd5987a0e6d2d3eeaaadc2ed.tar.gz rtmux-1a6156d8fdc1ff53cd5987a0e6d2d3eeaaadc2ed.tar.bz2 rtmux-1a6156d8fdc1ff53cd5987a0e6d2d3eeaaadc2ed.zip | |
Fix check for cursor at end of line.
| -rw-r--r-- | tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |