diff lisp/calendar/calendar.el @ 78464:7819402a9963

Use window-full-width-p instead of comparing frame-width and window-width.
author Martin Rudalics <rudalics@gmx.at>
date Wed, 08 Aug 2007 05:51:36 +0000
parents 93e11478c954
children 974a828870fe e5a68f18fcb9
line wrap: on
line diff
--- a/lisp/calendar/calendar.el	Wed Aug 08 05:49:21 2007 +0000
+++ b/lisp/calendar/calendar.el	Wed Aug 08 05:51:36 2007 +0000
@@ -2078,7 +2078,7 @@
     ;; Don't do any window-related stuff if we weren't called from a
     ;; window displaying the calendar
     (when in-calendar-window
-      (if (or (one-window-p t) (/= (frame-width) (window-width)))
+      (if (or (one-window-p t) (not (window-full-width-p)))
           ;; Don't mess with the window size, but ensure that the first
           ;; line is fully visible
           (set-window-vscroll nil 0)