mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix operation cancellation
This commit is contained in:
parent
4c879beb5d
commit
18da3c5c21
@ -15,6 +15,7 @@ Change Log
|
||||
- Improve the performance of text replacement significantly.
|
||||
- Improve the line number view fundamentally so that all unwanted behaviors after macOS Mojave disappear.
|
||||
- Select the setting selected in the last session when opening the Multiple Replacement window.
|
||||
- Improve general performance and stability.
|
||||
- [dev] Stop LineNumberView inheriting NSRulerView.
|
||||
|
||||
|
||||
|
@ -207,9 +207,7 @@ final class DocumentAnalyzer: NSObject {
|
||||
}
|
||||
|
||||
// cancel waiting operations to avoid stacking large operations
|
||||
self.editorInfoCountOperationQueue.operations
|
||||
.filter { !$0.isExecuting }
|
||||
.forEach { $0.cancel() }
|
||||
self.editorInfoCountOperationQueue.cancelAllOperations()
|
||||
|
||||
self.editorInfoCountOperationQueue.addOperation(operation)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user