You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prevents crashes from unbounded scrolling and memory growth in TUI.
Changes:
- Add bounds checking for scroll position calculations
- Ensure viewport height is at least 1 to prevent division issues
- Cap scroll position to valid line range
- Limit HashMap size to 100 entries to prevent memory leaks
- Add automatic eviction of old scroll positions
This fixes potential crashes from scrolling beyond buffer bounds
and prevents unbounded memory growth from long-running sessions.
0 commit comments