Skip to content

Perf: remove redundant sync call#2592

Open
valoq wants to merge 1 commit into
gokcehan:masterfrom
valoq:sync-perf
Open

Perf: remove redundant sync call#2592
valoq wants to merge 1 commit into
gokcehan:masterfrom
valoq:sync-perf

Conversation

@valoq

@valoq valoq commented May 21, 2026

Copy link
Copy Markdown
Contributor

When the terminal is resized, lf does a full repaint via screen.Sync(). But tcell already repaints by itself on resize, before it even notifies lf about the event. So every resize causes two repaints instead of one.
This PR skips the Sync() call when the redraw was triggered by a resize.

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