diff src/xdisp.c @ 18730:492cb3baf591

(display_text_line): Exit the outer loop immediately when the right margin has been reached.
author Richard M. Stallman <rms@gnu.org>
date Sat, 12 Jul 1997 06:17:23 +0000
parents 1fb4c75d4f1f
children 8fce2f503ea9
line wrap: on
line diff
--- a/src/xdisp.c	Sat Jul 12 06:13:54 1997 +0000
+++ b/src/xdisp.c	Sat Jul 12 06:17:23 1997 +0000
@@ -1,5 +1,6 @@
 /* Display generation from window structure and buffer text.
-   Copyright (C) 1985, 86, 87, 88, 93, 94, 95 Free Software Foundation, Inc.
+   Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 1997
+     Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -2991,7 +2992,7 @@
   next_boundary = pos;
   p1prev = p1;
   prevpos = pos;
-  while (1)
+  while (p1 < endp)
     {
       if (pos >= pause)
 	{