This commit is contained in:
pagedown 2021-11-14 16:01:07 +08:00 committed by Kovid Goyal
parent f3dd2a8bfd
commit e4781b8af0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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;