Always initialize screen mode, GitHub issue 3750 from Ding Fei.

pull/3809/head
nicm 2023-12-27 20:17:13 +00:00
parent f028445407
commit 73a2b12088
1 changed files with 1 additions and 0 deletions

View File

@ -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;