Fix inserting absolute path on file drop (fix #454)

This commit is contained in:
1024jp 2015-10-17 16:55:46 +09:00
parent ded9434a72
commit 9d7a58b1c0
4 changed files with 9 additions and 1 deletions

View File

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

View File

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

View File

@ -68,6 +68,7 @@
<h2>バグフィックス</h2>
<ul>
<li>ファイルドロップ設定に登録のないファイルタイプのファイルをドロップしたときに絶対パスが挿入されなかった不具合を修正</li>
<li>ウインドウ復帰時にアプリケーションがクラッシュする可能性があった不具合を修正</li>
<li>シンタックススタイル“Julia”と“SQL”のタイポを修正</li>
</ul>

View File

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