mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
FIx hang up with specific file names (fix #354)
This commit is contained in:
parent
487064defa
commit
3099ac43cb
@ -15,11 +15,12 @@ Change Log
|
||||
|
||||
- Fix an issue where some document icons were not applied under the specific environments.
|
||||
- [rc.2] Fix an issue where syntax style was suddenly reset while editing on new document.
|
||||
- [beta] Fix an issue where “Shift Left” action with whole text makes application hang up.
|
||||
- [beta] Fix an issue where “Shift Left” action with whole text makes application hang up.
|
||||
- [beta] Fix an issue where “Shift Right” action at blank line inserts unwanted indent to the next line.
|
||||
- [beta] Fix an issue where split orientation setting was ignored.
|
||||
- [beta] Fix an issue where text replacement could occasionally fail.
|
||||
- [beta] Fix an issue where closed windows remained in memory.
|
||||
- [beta] Fix an issue where application hang up on opening documents with specific file name on Mountain Lion.
|
||||
- [beta] Fix line number drawing with non-opaque view on Mountain Lion.
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
encoding="UTF-8"
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
© 2014 1024jp
|
||||
© 2014-2015 1024jp
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
@ -39,7 +39,10 @@
|
||||
- (void)setFrameSize:(NSSize)newSize;
|
||||
// ------------------------------------------------------
|
||||
{
|
||||
[self setPreferredMaxLayoutWidth:newSize.width - 4]; // 4 for 2 * inset
|
||||
// Setting preferredMaxLayoutWidth on 10.8 makes application hang up on document with specific file names (2015-02 by 1024jp).
|
||||
if (NSAppKitVersionNumber >= NSAppKitVersionNumber10_9) {
|
||||
[self setPreferredMaxLayoutWidth:newSize.width - 4]; // 4 for 2 * inset
|
||||
}
|
||||
|
||||
[super setFrameSize:newSize];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user