org--confirm-resource-safe: Fix prompt when prompting in non-file Org buffers

* lisp/org.el (org--confirm-resource-safe): When called from
non-file buffer, do not put stray "f" in the prompt.
This commit is contained in:
Ihor Radchenko 2024-02-23 12:56:58 +03:00
parent 4255d5dcc0
commit 01f10031b1
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 1 deletions

View File

@ -4667,9 +4667,9 @@ returns non-nil if any of them match."
(propertize domain 'face '(:inherit org-link :weight normal))
") as safe.\n ")
"")
(propertize "f" 'face 'success)
(if current-file
(concat
(propertize "f" 'face 'success)
" to download this resource, and permanently mark all resources in "
(propertize current-file 'face 'underline)
" as safe.\n ")