artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c50ff51
)
Only use ED for clear screen if at the bottom, same as earlier fix to
author
nicm
<nicm@openbsd.org>
Sun, 23 Apr 2017 18:13:24 +0000
(18:13 +0000)
committer
nicm
<nicm@openbsd.org>
Sun, 23 Apr 2017 18:13:24 +0000
(18:13 +0000)
clear end of screen.
usr.bin/tmux/tty.c
patch
|
blob
|
history
diff --git
a/usr.bin/tmux/tty.c
b/usr.bin/tmux/tty.c
index
31fab6f
..
decb761
100644
(file)
--- a/
usr.bin/tmux/tty.c
+++ b/
usr.bin/tmux/tty.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: tty.c,v 1.26
6 2017/04/19 06:52:27
nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.26
7 2017/04/23 18:13:24
nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@
-1218,6
+1218,7
@@
tty_cmd_clearscreen(struct tty *tty, const struct tty_ctx *ctx)
tty_margin_off(tty);
if (tty_pane_full_width(tty, ctx) &&
+ ctx->yoff + wp->sy >= tty->sy - 1 &&
status_at_line(tty->client) <= 0 &&
tty_term_has(tty->term, TTYC_ED)) {
tty_cursor_pane(tty, ctx, 0, 0);