changeset 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 43149745d126
children 2b3632471f92
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
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)
 	{