Fix document duplication

This commit is contained in:
1024jp 2016-05-29 03:48:13 +09:00
parent aa9a051619
commit 223ce3e8bf
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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