(gnus-xmas-group-startup-message): Don't use negative number for the 2nd arg
authoryamaoka <yamaoka>
Wed, 6 Oct 1999 22:43:39 +0000 (22:43 +0000)
committeryamaoka <yamaoka>
Wed, 6 Oct 1999 22:43:39 +0000 (22:43 +0000)
of `insert-char'.

lisp/gnus-xmas.el

index 2aed9fd..7083077 100644 (file)
@@ -625,8 +625,9 @@ the resulting string may be narrower than END-COLUMN.
                          `[xbm :file ,logo-xbm])
                         (t [nothing]))))
           (wpheight (window-pixel-height))
-          (rest (1- (/ (* (- wpheight (glyph-height glyph)) (window-height))
-                       wpheight 2))))
+          (rest (max 0 (1- (/ (* (- wpheight (glyph-height glyph))
+                                 (window-height))
+                              wpheight 2)))))
       (insert " ")
       (set-extent-begin-glyph (make-extent (point) (point)) glyph)
       (goto-char (point-min))