Skip to content

fix(zsh): add buffer redisplay before prompt reset in bracketed paste handler#2121

Merged
tusharmath merged 1 commit intomainfrom
fix/bracketed-paste-fails
Dec 14, 2025
Merged

fix(zsh): add buffer redisplay before prompt reset in bracketed paste handler#2121
tusharmath merged 1 commit intomainfrom
fix/bracketed-paste-fails

Conversation

@amitksingh1490
Copy link
Copy Markdown
Contributor

@amitksingh1490 amitksingh1490 commented Dec 14, 2025

Summary

Resolves timing issues in the ZSH bracketed paste handler that caused pasted content to become invisible or improperly rendered. The fix adds an explicit buffer redisplay step between paste execution and prompt reset, ensuring paste content stabilizes before syntax highlighting refresh.

Changes

  • Added zle redisplay call after bracketed-paste widget execution
  • Ensures buffer state stabilizes before reset-prompt is triggered
  • Enhanced inline documentation explaining the timing-sensitive operation sequence

Impact

  • Fixes large/multiline paste content disappearing or not rendering properly
  • Ensures syntax highlighting correctly applies to pasted content
  • Improves overall paste reliability in ZSH shell integration

Co-Authored-By: ForgeCode noreply@forgecode.dev

@github-actions github-actions Bot added the type: fix Iterations on existing features or infrastructure. label Dec 14, 2025
@amitksingh1490 amitksingh1490 changed the title fix(zsh): ensure buffer redisplay before prompt reset in bracketed paste fix(zsh): add buffer redisplay before prompt reset in bracketed paste handler Dec 14, 2025
@tusharmath tusharmath merged commit 8bcbecb into main Dec 14, 2025
8 checks passed
@tusharmath tusharmath deleted the fix/bracketed-paste-fails branch December 14, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants