diff options
| -rw-r--r-- | lisp/shell.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index 05179863d94..a759aedc8ea 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -625,7 +625,7 @@ See `shell-command-regexp'." (defun shell-get-current-command () "Function that returns the current command including arguments." (save-excursion - (if (looking-at "\\s *[^;&|]") + (if (looking-at "[\t ]*[^;&|\n]") (goto-char (match-end 0))) (buffer-substring (progn (shell-backward-command 1) (point)) |
