summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/vc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 9d1c6682c4d..35c371a6038 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -1994,7 +1994,7 @@ the buffer contents as a comment."
(let ((inhibit-read-only t))
(insert "No differences found.\n")))
(goto-char (point-min))
- (let ((window (get-buffer-window (current-buffer))))
+ (let ((window (get-buffer-window (current-buffer) t)))
(when window
(shrink-window-if-larger-than-buffer window))))))