fix: Edge case when paging from a line within prompt

When PROMPT_START is already past scrollback and can't be
found upwards, set the proper values depending on if the
search is over or deferred downwards.
This commit is contained in:
Arvin Verain 2025-02-25 19:01:17 +08:00
parent 56b49c49fb
commit 80d7da0902
No known key found for this signature in database
GPG key ID: EC2BB2E0EC3CE2FA

View file

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