From: Chong Yidong Date: Tue, 12 Sep 2006 22:05:57 +0000 (+0000) Subject: * net/rcirc.el (rcirc-print): Fix last change. X-Git-Tag: emacs-pretest-22.0.90~588 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b96572ff12cc71a4e68bb49ebcaf30c4ad7167e3;p=emacs.git * net/rcirc.el (rcirc-print): Fix last change. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index deabdbaa27c..f88ac078953 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2006-09-07 Ryan Yeske + + * net/rcirc.el (rcirc-print): Fix last change. + 2006-09-12 Jay Belanger * calc/calc.el (calc-dispatch): Remove unnecessary `sit-for'. diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 12c86b8163f..a639afeecf8 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -1260,11 +1260,10 @@ record activity." (with-current-buffer (window-buffer w) (when (eq major-mode 'rcirc-mode) (with-selected-window w - (when (<= (- (window-height) - (- (line-number-at-pos - (window-point)) - (line-number-at-pos - (window-start))) + (when (<= (- (window-height) + (count-screen-lines + (window-point) + (window-start)) 1) 0) (recenter -1)))))))