diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-10-31 10:05:48 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-10-31 10:05:48 +0000 |
commit | 729bdbb98822194e80a198a3cc7df1921ac9fcf6 (patch) | |
tree | ab23f4b22e86f17de68e28b64e1d3b72218cb946 | |
parent | ed51587e9c0075b9ca35608eb90b859f0d198e16 (diff) |
Reset all flags in screen_write_reset, reported by Benjamin Poirier.
-rw-r--r-- | usr.bin/tmux/screen-write.c | 5 |
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); |