diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/comint.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 69fd32d9b3b..36d7de5ec2f 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -790,7 +790,7 @@ buffer. The hook `comint-exec-hook' is run after each exec." default-directory "/")) proc decoding encoding changed) - (let ((exec-path (if (file-name-directory command) + (let ((exec-path (if (and command (file-name-directory command)) ;; If the command has slashes, make sure we ;; first look relative to the current directory. (cons default-directory exec-path) exec-path))) |