Skip to content

Conversation

@dmaluka
Copy link
Collaborator

@dmaluka dmaluka commented May 12, 2024

dmaluka added 2 commits May 12, 2024 20:05
The callback passed to UpdateDiff() is superfluous: in the synchronous
case screen.Redraw() is not needed anyway (since the screen is redrawn
at every iteration of the main loop), and in the asynchronous case
UpdateDiff() can just call screen.Redraw() directly.
When updateDiffSync() is called asynchronously, it should lock the
line array when calling Bytes(), to prevent race if the line array is
being modified by the main goroutine in the meantime.
@dmaluka dmaluka force-pushed the diffgutter-cleanup branch from f65afa9 to 5a159ce Compare May 12, 2024 19:08
@dmaluka dmaluka merged commit 9176508 into micro-editor:master May 14, 2024
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.

2 participants