]> git.eshelyaron.com Git - emacs.git/commitdiff
(redraw-calendar): Move to nearest date before
authorGerd Moellmann <gerd@gnu.org>
Wed, 3 Nov 1999 15:08:53 +0000 (15:08 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 3 Nov 1999 15:08:53 +0000 (15:08 +0000)
redrawing.

lisp/calendar/calendar.el

index 9061cdba76e1364599a6dcfe2a0d63a608988618..8a9459c423170984d453e73506dffd7e4534d7e4 100644 (file)
@@ -1860,7 +1860,7 @@ the inserted text.  Value is always t."
 (defun redraw-calendar ()
   "Redraw the calendar display."
   (interactive)
-  (let ((cursor-date (calendar-cursor-to-date)))
+  (let ((cursor-date (calendar-cursor-to-nearest-date)))
     (generate-calendar-window displayed-month displayed-year)
     (calendar-cursor-to-visible-date cursor-date)))