93503930c1b73b270b924314d88ddc1fba2c605e — Philip K 3 months ago ab6bb0e
fixed critical bug when no path was specified
1 files changed, 1 insertions(+), 1 deletions(-)

M bang.el
M bang.el => bang.el +1 -1
@@ 91,7 91,7 @@ between BEG and END. Otherwise the whole buffer is processed."
                      (match-string-no-properties 5 command)
                      nil nil 1)
                   (error (match-string-no-properties 5 command)))))
-      (let ((default-directory (bang-expand-path path)))
+      (let ((default-directory (bang-expand-path (or path "."))))
         (cond (has-< (delete-region beg end)
                      (shell-command rest t shell-command-default-error-buffer)
                      (exchange-point-and-mark))