This commit is contained in:
pagedown
2021-11-15 15:17:34 +05:30
committed by Kovid Goyal
parent f3dd2a8bfd
commit e4781b8af0
+1 -1
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;