Preserve CRLF flag when respawning.

This commit is contained in:
nicm 2022-04-01 10:11:59 +00:00 committed by Nicholas Marriott
parent fc6580574e
commit 1e9c3b3c63

View File

@ -103,7 +103,7 @@ screen_reinit(struct screen *s)
s->rupper = 0;
s->rlower = screen_size_y(s) - 1;
s->mode = MODE_CURSOR|MODE_WRAP;
s->mode = MODE_CURSOR|MODE_WRAP|(s->mode & MODE_CRLF);
if (options_get_number(global_options, "extended-keys") == 2)
s->mode |= MODE_KEXTENDED;