aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-11-30 14:01:11 +0000
committerThomas Adam <thomas@xteddy.org>2016-11-30 14:01:11 +0000
commit6749a30a6e1a6467b8ce688cc5c1c245224ef013 (patch)
tree9823be83adb20d13276b38faf32fe56d454f1690
parent1fccfd7be5ceb56f536e0a961a46fd014d4cab4f (diff)
parent1a6156d8fdc1ff53cd5987a0e6d2d3eeaaadc2ed (diff)
downloadrtmux-6749a30a6e1a6467b8ce688cc5c1c245224ef013.tar.gz
rtmux-6749a30a6e1a6467b8ce688cc5c1c245224ef013.tar.bz2
rtmux-6749a30a6e1a6467b8ce688cc5c1c245224ef013.zip
Merge branch 'obsd-master'
-rw-r--r--tty.c2
1 files changed, 1 insertions, 1 deletions
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