diff --git a/kitty/screen.c b/kitty/screen.c index e4a44da5e..8363b2f8f 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -4122,7 +4122,8 @@ find_cmd_output(Screen *self, OutputOffset *oo, index_type start_screen_y, unsig } if (y1 < upward_limit) { oo->reached_upper_limit = true; - found_output = true; start = upward_limit; + found_output = direction != 0; start = upward_limit; + found_prompt = direction != 0; } }