summaryrefslogtreecommitdiff
path: root/helm-external.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thievol@posteo.net>2021-10-20 06:31:01 +0200
committerThierry Volpiatto <thievol@posteo.net>2021-10-20 06:31:01 +0200
commitedd28b87c7e425314a2065dcebd8a6357c09e358 (patch)
tree6f418ec24115cdf1c2d0549d651ff2184e5b7480 /helm-external.el
parentd5c4b2209a405b173d34dc72181b06215fa72be9 (diff)
Fix #2449 check if helm-run-or-raise is called with FILE arg
Diffstat (limited to 'helm-external.el')
-rw-r--r--helm-external.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/helm-external.el b/helm-external.el
index 3f1805ca..893bbe96 100644
--- a/helm-external.el
+++ b/helm-external.el
@@ -90,10 +90,11 @@ When FILE argument is provided run EXE with FILE."
(let* ((real-com (replace-regexp-in-string
"(" "" (car (split-string exe))))
(proc-name (if file (concat real-com " " file) real-com))
- (file-arg (shell-quote-argument
- (if (eq system-type 'windows-nt)
- (helm-w32-prepare-filename file)
- (expand-file-name file))))
+ (file-arg (and file
+ (shell-quote-argument
+ (if (eq system-type 'windows-nt)
+ (helm-w32-prepare-filename file)
+ (expand-file-name file)))))
process-connection-type proc)
(if (get-process proc-name)
(if helm-raise-command