mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix document duplication
This commit is contained in:
parent
aa9a051619
commit
223ce3e8bf
@ -31,6 +31,7 @@ develop
|
||||
- Fix an issue where unselected last line number could be highlighted if the text orientation is vertical.
|
||||
- Fix an issue where invisible characters were drawn off to the side if the text orientation is vertical.
|
||||
- Fix an issue where detected indent style was applied not only on file opening but also every time when file reverted.
|
||||
- Fix an issue where documents were marked as “Edited” just after document duplication if line ending is not the default one.
|
||||
|
||||
|
||||
|
||||
|
@ -643,7 +643,7 @@ NSString *_Nonnull const CEDocumentSyntaxStyleDidChangeNotification = @"CEDocume
|
||||
CEDocument *document = [super duplicateAndReturnError:outError];
|
||||
|
||||
[document setSyntaxStyleWithName:[[self syntaxStyle] styleName]];
|
||||
[document doSetLineEnding:[self lineEnding]];
|
||||
[document setLineEnding:[self lineEnding]];
|
||||
[document doSetEncoding:[self encoding] withUTF8BOM:[self hasUTF8BOM] updateDocument:NO askLossy:NO lossy:NO asActionName:nil];
|
||||
|
||||
// apply text orientation
|
||||
|
Loading…
Reference in New Issue
Block a user