From 1d6a833ea5d4eea9f8c53e48a777ba8de3917a92 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 27 Dec 2023 20:17:13 +0000 Subject: [PATCH] Always initialize screen mode, GitHub issue 3750 from Ding Fei. --- usr.bin/tmux/screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/tmux/screen.c b/usr.bin/tmux/screen.c index a943d20ca89..b70ed6ea241 100644 --- a/usr.bin/tmux/screen.c +++ b/usr.bin/tmux/screen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen.c,v 1.83 2023/09/19 08:35:44 nicm Exp $ */ +/* $OpenBSD: screen.c,v 1.84 2023/12/27 20:17:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -83,6 +83,7 @@ screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) s->cstyle = SCREEN_CURSOR_DEFAULT; s->default_cstyle = SCREEN_CURSOR_DEFAULT; + s->mode = MODE_CURSOR; s->default_mode = 0; s->ccolour = -1; s->default_ccolour = -1; -- 2.20.1