changeset 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 eab4b9f68f93
children e7bf4f8cbe2a
files lisp/simple.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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