Skip to content

Conversation

@majiayu000
Copy link

Fixes #4258

Changes

  • Set scrollable = true when FillSuspend is returned during preview rendering
  • Ensures preview window correctly detects scrollability when wrapped lines fill the window

When preview content with wrap mode fills the window exactly (returning
FillSuspend), the scrollable flag was not being set to true. This caused
scrolling to be disabled even when there was more content to scroll to.

The fix sets scrollable = true whenever FillSuspend is returned, both
when rendering content and when filling the trailing newline.

Fixes junegunn#4258

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.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.

--preview-window wrap breaks preview scrolling in some condition.

1 participant