aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-12 06:17:23 +0000
committerRichard M. Stallman1997-07-12 06:17:23 +0000
commit2384c010d256c3201a522bdf1485c39ec07ea211 (patch)
treed473d3bfb93977b4c5e8136645adc232131b3e3f
parent284795f8719f9deaf18d43477b68e4617ba549bb (diff)
downloademacs-2384c010d256c3201a522bdf1485c39ec07ea211.tar.gz
emacs-2384c010d256c3201a522bdf1485c39ec07ea211.zip
(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 @@
1/* Display generation from window structure and buffer text. 1/* Display generation from window structure and buffer text.
2 Copyright (C) 1985, 86, 87, 88, 93, 94, 95 Free Software Foundation, Inc. 2 Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 1997
3 Free Software Foundation, Inc.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -2991,7 +2992,7 @@ display_text_line (w, start, vpos, hpos, taboffset, ovstr_done)
2991 next_boundary = pos; 2992 next_boundary = pos;
2992 p1prev = p1; 2993 p1prev = p1;
2993 prevpos = pos; 2994 prevpos = pos;
2994 while (1) 2995 while (p1 < endp)
2995 { 2996 {
2996 if (pos >= pause) 2997 if (pos >= pause)
2997 { 2998 {