From 90722ecbe7055f6bd6126ba2ec987d1dae0fe8dd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 17 Mar 2021 13:51:30 +0530 Subject: [PATCH] historybuf should be used only when current screen is the main linebuf --- kitty/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/screen.c b/kitty/screen.c index b28d593d3..f109d17e3 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -247,7 +247,7 @@ screen_resize(Screen *self, unsigned int lines, unsigned int columns) { if (n == NULL) return false; - if (OPT(scrollback_fill_enlarged_window)) { + if (is_main && OPT(scrollback_fill_enlarged_window)) { int lines_to_fill = (lines - self->main_linebuf->ynum) + ( linebuf_continued_lines_count(self->main_linebuf, self->cursor->y) - linebuf_continued_lines_count(n, y)); const unsigned int top = 0, bottom = lines-1;