Commit d8c0e7f
committed
fix(tui): prevent End hint showing when already at bottom
The scroll_chat method was unconditionally setting chat_scroll_pinned_bottom
to false, which caused the '↓ End' hint to incorrectly appear when:
- Scrolling down while already at the bottom
- Pressing End key while at the bottom
Now we check if chat_scroll is 0 (at bottom) after the scroll operation
and keep pinned_bottom=true in that case.1 parent ac6398e commit d8c0e7f
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
522 | 524 | | |
523 | 525 | | |
524 | 526 | | |
| |||
0 commit comments