Skip to content

Commit

Permalink
external-editor: Fix bug.
Browse files Browse the repository at this point in the history
Introduced in 9868be8.
  • Loading branch information
aadcg committed Oct 9, 2023
1 parent 3514e5d commit 5a00131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/external-editor.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Signals an error if COMMAND is nil or an empty string."
;; this custom append function.
(cond
((null command) (error "Unable to append arguments to a null command."))
((consp command) (append command args))
((str:emptyp command) (error "Unable to append arguments to an empty command."))
((null args) command)
((stringp command) (uiop:reduce/strcat (list command " " (str:unwords args))))
((consp command) (append command args))))
((stringp command) (uiop:reduce/strcat (list command " " (str:unwords args))))))

(export-always 'run-external-editor)
(defun run-external-editor (path &optional (program (external-editor-program *browser*)))
Expand Down

0 comments on commit 5a00131

Please sign in to comment.