From d5f23837c25467e66f75d9b2250ced2947d2b667 Mon Sep 17 00:00:00 2001 From: sasanidas Date: Mon, 27 Nov 2023 20:07:41 +0100 Subject: [PATCH] Fix the pathname detection Seems like when the file is on the ARG, not always is a PATHNAME, sometimes is a string that can be a valid absolute pathname. Checking the absolute path seems to solve the issue. --- src/commands/file.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/file.lisp b/src/commands/file.lisp index 89170c3a5..7a9fafd07 100644 --- a/src/commands/file.lisp +++ b/src/commands/file.lisp @@ -82,7 +82,8 @@ :directory (buffer-directory) :default nil :existing nil)) - ((pathnamep arg) + ((or (pathnamep arg) + (uiop:absolute-pathname-p arg)) (namestring arg))))) (let (buffer) (dolist (pathname (expand-files* filename))