From e4781b8af018c4c2cc0339cd90b89a6cc10716e9 Mon Sep 17 00:00:00 2001 From: pagedown Date: Sun, 14 Nov 2021 16:01:07 +0800 Subject: [PATCH] ... --- kitty/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/screen.c b/kitty/screen.c index 69817e20c..dc33ba6df 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -2734,7 +2734,7 @@ find_cmd_output(Screen *self, OutputOffset *oo, index_type start_y, unsigned int if (found_next_prompt) { oo->num_lines = end - start; } else if (found_output) { - oo->num_lines = (direction < 0 ? start_y : downward_limit) - start; + oo->num_lines = (direction < 0 ? start_y : (unsigned int)downward_limit) - start; } else return false; oo->start = start; return true;