feldroy / feldroy/pad

Scroll off-by-one when pressing Return at bottom of viewport

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8
Forks
0
PR merge metrics
No merged PRs in 30d

Description

> When you're at the bottom of the screen writing and press return, the window needs to scroll 1 line. Feels off by one. Scroll happens after typing first char, which is helpful but it should happen right before then.

## Claude Opus 4.6's Interpretation

When typing at the last visible line and pressing Return, the new line is below the viewport. Scrolling only happens after typing the first character on that line. The scroll should happen immediately when Return creates a new line at or past the viewport bottom.

### Possible solution

- Hook into the Return key or `on_text_area_changed` to check if cursor is below viewport and scroll proactively

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.