summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-12 06:17:23 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-12 06:17:23 +0000
commite58552720f82eb0a82f58e8c101fcccc815fe5eb (patch)
tree19b454dac4104b050fd553a2b08dbb0805345d53
parent80e76799f3ceb24900825803d7f88229c4d01549 (diff)
downloademacs-e58552720f82eb0a82f58e8c101fcccc815fe5eb.tar.gz
(display_text_line): Exit the outer loop immediately
when the right margin has been reached.
-rw-r--r--src/xdisp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index a36b8f0eda9..65b4c2c26e8 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -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 @@ display_text_line (w, start, vpos, hpos, taboffset, ovstr_done)
next_boundary = pos;
p1prev = p1;
prevpos = pos;
- while (1)
+ while (p1 < endp)
{
if (pos >= pause)
{