lang/org: fix relative file attachments #370
Affected non-image files having one-too-many ../ in its path.
This commit is contained in:
parent
5dcd673651
commit
0e392372df
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ the cursor."
|
|||
(insert
|
||||
(format "%s [[./%s][%s]] "
|
||||
(+org-attach--icon filename)
|
||||
(file-relative-name filename buffer-file-name)
|
||||
(file-relative-name filename (file-name-directory buffer-file-name))
|
||||
(file-name-nondirectory (directory-file-name filename)))))))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue