mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix inserting absolute path on file drop (fix #454)
This commit is contained in:
parent
ded9434a72
commit
9d7a58b1c0
@ -28,6 +28,7 @@ develop
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix an issue where no file path was inserted if file type of the dropped file was not registered to the file drop setting.
|
||||
- Fix an issue where application could crash on window restoration.
|
||||
- Fix some typos in syntax styles “Julia” and “SQL”.
|
||||
|
||||
|
@ -68,6 +68,7 @@
|
||||
<h2>Fixes</h2>
|
||||
|
||||
<ul>
|
||||
<li>Fix an issue where no file path was inserted if file type of the dropped file was not registered to the file drop setting.</li>
|
||||
<li>Fix an issue where application could crash on window restoration.</li>
|
||||
<li>Fix some typos in syntax styles “Julia” and “SQL”.</li>
|
||||
</ul>
|
||||
|
@ -68,6 +68,7 @@
|
||||
<h2>バグフィックス</h2>
|
||||
|
||||
<ul>
|
||||
<li>ファイルドロップ設定に登録のないファイルタイプのファイルをドロップしたときに絶対パスが挿入されなかった不具合を修正</li>
|
||||
<li>ウインドウ復帰時にアプリケーションがクラッシュする可能性があった不具合を修正</li>
|
||||
<li>シンタックススタイル“Julia”と“SQL”のタイポを修正</li>
|
||||
</ul>
|
||||
|
@ -765,7 +765,12 @@ static NSPoint kTextContainerOrigin;
|
||||
}
|
||||
}
|
||||
|
||||
if ([stringToDrop length] == 0) { continue; }
|
||||
// add jsut absolute path if no specific setting for the file type found
|
||||
if ([stringToDrop length] == 0) {
|
||||
[replacementString appendString:[absoluteURL path]];
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
// build relative path
|
||||
NSString *relativePath;
|
||||
|
Loading…
Reference in New Issue
Block a user