Suppress inconsistent line ending alart on versions

This commit is contained in:
1024jp 2022-06-15 23:21:43 +09:00
parent 39fb66f9c6
commit a02fbdc930
2 changed files with 11 additions and 1 deletions

View File

@ -2,6 +2,15 @@
Change Log
==========================
4.3.0 (unreleased)
--------------------------
### Improvements
- [trivial] Suprpress the inconsistent line ending alart in the Versions browsing.
4.3.0-rc (515)
--------------------------

View File

@ -1087,7 +1087,8 @@ final class Document: NSDocument, AdditionalDocumentPreparing, EncodingHolder {
// show alert if line endings are inconsistent
if !self.suppressesInconsistentLineEndingAlert,
!self.lineEndingScanner.inconsistentLineEndings.isEmpty
!self.lineEndingScanner.inconsistentLineEndings.isEmpty,
!self.isBrowsingVersions
{
if self.windowForSheet?.isVisible == true {
self.showInconsistentLineEndingAlert()