Skip to content

Commit 8a7bcdb

Browse files
committed
mode/file-manager: Run URL-DECODE on a URL in OPEN-FILE
When a file is already opened in the current buffer, pass it through URL-DECODE before converting to a pathname.
1 parent d255b1d commit 8a7bcdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/mode/file-manager.lisp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ Can be used as a `open-file-function'."
309309
(define-command-global open-file (&key (default-directory
310310
(if (quri:uri-file-p (url (current-buffer)))
311311
(uiop:pathname-directory-pathname
312-
(quri:uri-path (url (current-buffer))))
312+
(quri:url-decode
313+
(quri:uri-path (url (current-buffer)))))
313314
*default-pathname-defaults*)))
314315
"Open a file from the filesystem.
315316

0 commit comments

Comments
 (0)