mirror of
https://github.com/tmux/tmux.git
synced 2024-11-17 18:08:51 +00:00
Fix check for cursor at end of line.
This commit is contained in:
parent
6b46c62bb4
commit
1a6156d8fd
2
tty.c
2
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);
|
tty_cursor_pane(tty, ctx, 0, ctx->ocy + 1);
|
||||||
else
|
else
|
||||||
tty_cursor_pane(tty, ctx, 0, ctx->ocy);
|
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
|
* The cursor isn't in the last position already, so
|
||||||
* move as far right as possible and redraw the last
|
* move as far right as possible and redraw the last
|
||||||
|
Loading…
Reference in New Issue
Block a user