Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updateDiffSync(): fix potential race
updateDiffSync() may called asynchronously, so 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.
- Loading branch information