-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: duplicate saving and stale webview. (#513)
* Fix: duplicate saving and stale webview. Fixed the duplicate save by saving only the timeline from the unsaved index. Fixed the duplicate insertion by only applying timeline from the unsaved index. Fixed bytes not showing after saving by forcing the webview to reload its raw data pages. Fixed diskFileSize state being updated with diskFileSize + editsDelta instead of only diskFileSize. Fixed diskFileSize state not being updated after document save. Added tests to triple check the fix works in all places that used the previous editTimeline. Changed editTimeline to AllEditTimeline to prevent confusion with the newly added unsavedEditTimeline * Removed commented code * Fixes race condition when writing in bulk.
- Loading branch information
Showing
9 changed files
with
157 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.