summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-05-10 18:40:14 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-05-10 18:40:14 +0000
commitfec5095c019001d2eddf940a2a46c06bb11b4dd8 (patch)
tree4a823a6f061ab1e6090a781b6dca74b2b42084cc /usr.bin/tmux
parent115c9f6dc8c036f2081086fa37d2cba86428846e (diff)
Move to the right cursor position before using spaces to clear.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 13517bd5766..9f954ccf50a 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.271 2017/05/10 16:47:03 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.272 2017/05/10 18:40:13 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -789,6 +789,7 @@ tty_clear_line(struct tty *tty, const struct window_pane *wp, u_int py,
}
/* Couldn't use an escape sequence, use spaces. */
+ tty_cursor(tty, px, py);
tty_repeat_space(tty, nx);
}