fix(tui): honor ends during plan review reflow

This commit is contained in:
can1357
2026-07-16 03:44:10 +02:00
parent 37d38e1485
commit 34f8eb70f0
2 changed files with 58 additions and 1 deletions
@@ -477,7 +477,9 @@ export class PlanReviewOverlay implements Component {
*/
#handleBodyScroll(data: string): void {
if (this.#scrollView.handleScrollKey(data)) {
this.#captureScrollProgress();
if (matchesKey(data, "home")) this.#scrollProgress = 0;
else if (matchesKey(data, "end")) this.#scrollProgress = 1;
else this.#captureScrollProgress();
return;
}
if (data === "g") {