summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-10-31 10:05:47 +0000
committernicm <nicm@openbsd.org>2018-10-31 10:05:47 +0000
commitd97b45375538161c729e26925566d74458a4139e (patch)
tree0225afb28ce09798899a85fca64c73c642e0dd28 /usr.bin/tmux/screen-write.c
parentzap return keyword to clarify umidi_flush() returns no value; ok ratchov@ (diff)
downloadwireguard-openbsd-d97b45375538161c729e26925566d74458a4139e.tar.xz
wireguard-openbsd-d97b45375538161c729e26925566d74458a4139e.zip
Reset all flags in screen_write_reset, reported by Benjamin Poirier.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r--usr.bin/tmux/screen-write.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c
index 20036732656..71e44ce1d6b 100644
--- a/usr.bin/tmux/screen-write.c
+++ b/usr.bin/tmux/screen-write.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen-write.c,v 1.140 2018/10/25 15:13:38 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.141 2018/10/31 10:05:47 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -144,8 +144,7 @@ screen_write_reset(struct screen_write_ctx *ctx)
screen_reset_tabs(s);
screen_write_scrollregion(ctx, 0, screen_size_y(s) - 1);
- s->mode &= ~(MODE_INSERT|MODE_KCURSOR|MODE_KKEYPAD|MODE_FOCUSON);
- s->mode &= ~(ALL_MOUSE_MODES|MODE_MOUSE_UTF8|MODE_MOUSE_SGR);
+ s->mode = MODE_CURSOR | MODE_WRAP;
screen_write_clearscreen(ctx, 8);
screen_write_cursormove(ctx, 0, 0);