mirror of
https://github.com/tmux/tmux.git
synced 2025-04-17 01:08:49 +00:00
Do not clear to end of screen unless the pane is at the bottom.
This commit is contained in:
parent
640d9e54b7
commit
dd25a6cdc2
1
tty.c
1
tty.c
@ -1031,6 +1031,7 @@ tty_cmd_clearendofscreen(struct tty *tty, const struct tty_ctx *ctx)
|
|||||||
tty_margin_off(tty);
|
tty_margin_off(tty);
|
||||||
|
|
||||||
if (tty_pane_full_width(tty, ctx) &&
|
if (tty_pane_full_width(tty, ctx) &&
|
||||||
|
ctx->yoff + wp->sy >= tty->sy - 1 &&
|
||||||
status_at_line(tty->client) <= 0 &&
|
status_at_line(tty->client) <= 0 &&
|
||||||
tty_term_has(tty->term, TTYC_ED)) {
|
tty_term_has(tty->term, TTYC_ED)) {
|
||||||
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);
|
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);
|
||||||
|
Loading…
Reference in New Issue
Block a user