From 843814ac253f5645d85c97a279cdeb408bdf5953 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Tue, 28 Jul 2009 02:32:19 +0300 Subject: [PATCH] Make sure current-prefix-arg is a cons before caring it. --- magit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magit.el b/magit.el index 00d4b5b4..d80baccc 100644 --- a/magit.el +++ b/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)))