diff lisp/simple.el @ 68611:28a6ea706763

(display-message-or-buffer): Count screen lines instead of buffer lines when determining whether the message will fit in the echo area/minibuffer window.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 04 Feb 2006 12:18:57 +0000
parents 0cbfc61cfa3f
children 1c23b04a7a2c
line wrap: on
line diff
--- a/lisp/simple.el	Sat Feb 04 12:12:39 2006 +0000
+++ b/lisp/simple.el	Sat Feb 04 12:18:57 2006 +0000
@@ -1922,7 +1922,7 @@
 	   (let ((lines
 		  (if (= (buffer-size) 0)
 		      0
-		    (count-lines (point-min) (point-max)))))
+		    (count-screen-lines nil nil nil (minibuffer-window)))))
 	     (cond ((= lines 0))
 		   ((and (or (<= lines 1)
 			     (<= lines