Make sure current-prefix-arg is a cons before caring it.
This commit is contained in:
parent
ea6105fbbf
commit
843814ac25
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -1989,7 +1989,7 @@ in log buffer."
|
|||
(defun magit-status (dir)
|
||||
(interactive (list (or (and (not current-prefix-arg)
|
||||
(magit-get-top-dir default-directory))
|
||||
(magit-read-top-dir (and (listp current-prefix-arg)
|
||||
(magit-read-top-dir (and (consp current-prefix-arg)
|
||||
(> (car current-prefix-arg) 4))))))
|
||||
(if magit-save-some-buffers
|
||||
(save-some-buffers (eq magit-save-some-buffers 'dontask)))
|
||||
|
|
Loading…
Reference in a new issue