From 1e9c3b3c63b9fb98bcf02eb8b09d1cefb0b72d26 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 1 Apr 2022 10:11:59 +0000 Subject: [PATCH] Preserve CRLF flag when respawning. --- screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen.c b/screen.c index 7046e098..62cf4765 100644 --- a/screen.c +++ b/screen.c @@ -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;