mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Suppress inconsistent line ending alart on versions
This commit is contained in:
parent
39fb66f9c6
commit
a02fbdc930
@ -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)
|
||||
--------------------------
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user