diff --git a/CHANGELOG.md b/CHANGELOG.md index 497bc0c8c..50a4e7ad8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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”. diff --git a/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html b/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html index 4ec1b8743..c52e504c7 100644 --- a/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html +++ b/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html @@ -68,6 +68,7 @@

Fixes

diff --git a/CotEditor/CotEditor.help/Contents/Resources/ja.lproj/pgs/releasenotes.html b/CotEditor/CotEditor.help/Contents/Resources/ja.lproj/pgs/releasenotes.html index 453cfda42..872c76542 100644 --- a/CotEditor/CotEditor.help/Contents/Resources/ja.lproj/pgs/releasenotes.html +++ b/CotEditor/CotEditor.help/Contents/Resources/ja.lproj/pgs/releasenotes.html @@ -68,6 +68,7 @@

バグフィックス

diff --git a/CotEditor/Sources/CETextView.m b/CotEditor/Sources/CETextView.m index 26a69044a..c9137b87b 100644 --- a/CotEditor/Sources/CETextView.m +++ b/CotEditor/Sources/CETextView.m @@ -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;