Skip to content

terminal_view: Fix ghost prompt content when resizing the terminal - #57968

Closed
notJoon wants to merge 2 commits into
zed-industries:mainfrom
notJoon:fix/terminal-resize-grid-jitter
Closed

terminal_view: Fix ghost prompt content when resizing the terminal#57968
notJoon wants to merge 2 commits into
zed-industries:mainfrom
notJoon:fix/terminal-resize-grid-jitter

Conversation

@notJoon

@notJoon notJoon commented May 28, 2026

Copy link
Copy Markdown
Contributor

Drag-resizing a standalone terminal left ghost copies of the previous prompt onscreen. The layout snap from #47195 shifted the grid's origin.y by the partial-row slack on every drag pixel, drifting out of phase with alacritty's row scroll and the shell's SIGWINCH repaint.
Drop the per-pixel shift; keep the device-pixel row snap so the original subpixel flicker fix survives. The unused slack now sits as background below the grid, and the grid's screen position stays stable.

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Closes #57879

Release Notes:

  • Fixed terminal prompt being duplicated when the terminal panel is resized

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 28, 2026
@zed-community-bot zed-community-bot Bot added the guild Pull requests by someone in Zed Guild. NOTE: the label application is automated via github actions label May 28, 2026
@maxdeviant maxdeviant changed the title terminal_view: fix ghost prompt content when resizing the terminal terminal_view: Fix ghost prompt content when resizing the terminal May 28, 2026
@smitbarmase smitbarmase added the area:integrations/terminal Feedback for terminal integration, shell commands, etc label May 29, 2026
@ChristopherBiscardi

Copy link
Copy Markdown
Contributor

Thanks for the PR! unfortunately this doesn't seem to have fixed #57879. This PR is on the left in this screenshot.

image

@zelenenka zelenenka removed the guild Pull requests by someone in Zed Guild. NOTE: the label application is automated via github actions label Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:integrations/terminal Feedback for terminal integration, shell commands, etc cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Path duplicates when shrinking and expanding the terminal

4 participants