diff options
author | Thomas Adam <thomas@xteddy.org> | 2016-12-07 10:01:12 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2016-12-07 10:01:12 +0000 |
commit | b9fa8f12d7b56a331a53f347bfe81e62ca351dc5 (patch) | |
tree | 29f9b29568df79c75e3bb08a0405a7b1210d48a0 /tty.c | |
parent | 6749a30a6e1a6467b8ce688cc5c1c245224ef013 (diff) | |
parent | 5ea143f521726a47fd5092dcc3abf9101af32751 (diff) | |
download | rtmux-b9fa8f12d7b56a331a53f347bfe81e62ca351dc5.tar.gz rtmux-b9fa8f12d7b56a331a53f347bfe81e62ca351dc5.tar.bz2 rtmux-b9fa8f12d7b56a331a53f347bfe81e62ca351dc5.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |