summaryrefslogtreecommitdiff
path: root/lisp/vc.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/vc.el')
-rw-r--r--lisp/vc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 5afc18e048c..758f26d0dc3 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -2799,7 +2799,7 @@ specific headers."
(defun vc-dir (dir)
"Show the VC status for DIR."
(interactive "DVC status for directory: ")
- (switch-to-buffer (vc-dir-prepare-status-buffer dir))
+ (pop-to-buffer (vc-dir-prepare-status-buffer dir))
(if (eq major-mode 'vc-dir-mode)
(vc-dir-refresh)
(vc-dir-mode)))