# HG changeset patch # User Richard M. Stallman # Date 868688243 0 # Node ID 492cb3baf591a53cace53a8878429328bf6a6881 # Parent 43149745d126023f129041f1a149d0c64ec13932 (display_text_line): Exit the outer loop immediately when the right margin has been reached. diff -r 43149745d126 -r 492cb3baf591 src/xdisp.c --- 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) {