summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-07-31 10:32:19 +0000
committernicm <nicm@openbsd.org>2018-07-31 10:32:19 +0000
commitb426681e70c917fac275931a1a145e66e899c033 (patch)
tree653cfe063210149794d23f0865a6fc1b74c33f10 /usr.bin/tmux/input.c
parentImplement setting the voltage of the regulators. (diff)
downloadwireguard-openbsd-b426681e70c917fac275931a1a145e66e899c033.tar.xz
wireguard-openbsd-b426681e70c917fac275931a1a145e66e899c033.zip
Clear history on RIS like most other terminals do.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r--usr.bin/tmux/input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index cfe2577d579..0e29839fe42 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.134 2018/04/10 11:20:15 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.135 2018/07/31 10:32:19 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1188,6 +1188,7 @@ input_esc_dispatch(struct input_ctx *ictx)
window_pane_reset_palette(ictx->wp);
input_reset_cell(ictx);
screen_write_reset(sctx);
+ screen_write_clearhistory(sctx);
break;
case INPUT_ESC_IND:
screen_write_linefeed(sctx, 0, ictx->cell.cell.bg);