Update extended-keys mode after running reset(1)

This is the same code that was added to screen_reinit() when the
"always" value was added to the extended-keys option in 8363c6a.

Fixes GitHub issue #3629.
pull/3630/head
yut23 2023-07-13 15:45:04 -04:00
parent 828efc7bcf
commit 99acc1ec01
1 changed files with 2 additions and 0 deletions

View File

@ -327,6 +327,8 @@ screen_write_reset(struct screen_write_ctx *ctx)
screen_write_scrollregion(ctx, 0, screen_size_y(s) - 1);
s->mode = MODE_CURSOR | MODE_WRAP;
if (options_get_number(global_options, "extended-keys") == 2)
s->mode |= MODE_KEXTENDED;
screen_write_clearscreen(ctx, 8);
screen_write_set_cursor(ctx, 0, 0);