changeset 4436:4f8cf717fca0

(shrink-window-if-larger-than-buffer): Pass WINDOW to pos-visible-in-window-p.
author Roland McGrath <roland@gnu.org>
date Tue, 03 Aug 1993 06:38:26 +0000
parents 4ad99dc50f6f
children 6b8292f922df
files lisp/window.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/window.el	Tue Aug 03 05:46:33 1993 +0000
+++ b/lisp/window.el	Tue Aug 03 06:38:26 1993 +0000
@@ -1,6 +1,6 @@
 ;;; window.el --- GNU Emacs window commands aside from those written in C.
 
-;;; Copyright (C) 1985, 1989, 1992 Free Software Foundation, Inc.
+;;; Copyright (C) 1985, 1989, 1992, 1993 Free Software Foundation, Inc.
 
 ;; Maintainer: FSF
 
@@ -158,7 +158,7 @@
 	  (modified (buffer-modified-p))
 	  (buffer (current-buffer)))
       (if (and (< 1 (count-windows))
-	       (pos-visible-in-window-p (point-min)))
+	       (pos-visible-in-window-p (point-min) window))
 	  (unwind-protect
 	      (progn
 		(select-window (or window w))