changeset 72844:d355db098f15

* net/rcirc.el (rcirc-print): Fix last change.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 12 Sep 2006 22:05:57 +0000
parents d00fce173879
children becf85cadcc0
files lisp/ChangeLog lisp/net/rcirc.el
diffstat 2 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Sep 12 21:08:27 2006 +0000
+++ b/lisp/ChangeLog	Tue Sep 12 22:05:57 2006 +0000
@@ -1,3 +1,7 @@
+2006-09-07  Ryan Yeske  <rcyeske@gmail.com>
+
+	* net/rcirc.el (rcirc-print): Fix last change.
+
 2006-09-12  Jay Belanger  <belanger@truman.edu>
 
 	* calc/calc.el (calc-dispatch): Remove unnecessary `sit-for'.
--- a/lisp/net/rcirc.el	Tue Sep 12 21:08:27 2006 +0000
+++ b/lisp/net/rcirc.el	Tue Sep 12 22:05:57 2006 +0000
@@ -1260,11 +1260,10 @@
 			      (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)))))))