mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17:38:48 +00:00
The cursor position is limited to the margins for CUF and CUB, so turn
margins off for printing cells (like most everything else already does). Problem reported by Thomas Sattler.
This commit is contained in:
parent
bd9133b31d
commit
be2201200f
12
tty.c
12
tty.c
@ -1401,13 +1401,12 @@ tty_cmd_alignmenttest(struct tty *tty, const struct tty_ctx *ctx)
|
||||
void
|
||||
tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx)
|
||||
{
|
||||
if (ctx->xoff + ctx->ocx > tty->sx - 1 && ctx->ocy == ctx->orlower) {
|
||||
if (tty_pane_full_width(tty, ctx))
|
||||
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
|
||||
else
|
||||
tty_margin_off(tty);
|
||||
}
|
||||
if (ctx->xoff + ctx->ocx > tty->sx - 1 &&
|
||||
ctx->ocy == ctx->orlower &&
|
||||
tty_pane_full_width(tty, ctx))
|
||||
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
|
||||
|
||||
tty_margin_off(tty);
|
||||
tty_cursor_pane_unless_wrap(tty, ctx, ctx->ocx, ctx->ocy);
|
||||
|
||||
tty_cell(tty, ctx->cell, ctx->wp);
|
||||
@ -1416,6 +1415,7 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx)
|
||||
void
|
||||
tty_cmd_cells(struct tty *tty, const struct tty_ctx *ctx)
|
||||
{
|
||||
tty_margin_off(tty);
|
||||
tty_cursor_pane_unless_wrap(tty, ctx, ctx->ocx, ctx->ocy);
|
||||
|
||||
tty_attributes(tty, ctx->cell, ctx->wp);
|
||||
|
Loading…
Reference in New Issue
Block a user