Skip to content

fix: allow scrolling back in eat read-only mode#126

Open
shir-genesis wants to merge 1 commit intostevemolitor:mainfrom
shir-genesis:fix-eat-read-only-scroll
Open

fix: allow scrolling back in eat read-only mode#126
shir-genesis wants to merge 1 commit intostevemolitor:mainfrom
shir-genesis:fix-eat-read-only-scroll

Conversation

@shir-genesis
Copy link

The synchronize-scroll function checked buffer-read-only to decide whether to snap the viewport back to the terminal cursor. However, eat-emacs-mode (used by read-only mode) does not set buffer-read-only to t — it clears eat--semi-char-mode instead. This caused the scroll function to keep pulling the user back to the bottom even in read-only mode, making it impossible to scroll through history.

Fix: check eat--semi-char-mode (which is what claude-code--term-in-read-only-p already uses) instead of buffer-read-only.

The synchronize-scroll function checked `buffer-read-only` to decide
whether to snap the viewport back to the terminal cursor. However,
`eat-emacs-mode` (used by read-only mode) does not set `buffer-read-only`
to t — it clears `eat--semi-char-mode` instead. This caused the scroll
function to keep pulling the user back to the bottom even in read-only
mode, making it impossible to scroll through history.

Fix: check `eat--semi-char-mode` (which is what `claude-code--term-in-read-only-p`
already uses) instead of `buffer-read-only`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant