Skip to content

Conversation

@majiayu000
Copy link

Fixes #4100

Changes

  • Add togglePreview() helper to sync hidden state to both main and alternative preview layouts
  • Call togglePreview() after toggle/show/hide/close actions to ensure state consistency

When using alternate preview layouts (e.g., right,60%,<80(down:45%)), hiding the preview in one layout now persists when the terminal is resized and the alternate layout becomes active.

When toggling preview visibility, sync the hidden state to both the
default and alternative preview layouts. This ensures the preview
maintains its hidden/visible state when terminal resizing triggers
a layout switch.

Fixes junegunn#4100

Signed-off-by: majiayu000 <[email protected]>
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.

[Bug] alternate preview layout maintains separate hidden state

1 participant