From d85b2f1e851dd703f60dcb473c7cbb62f201bc7e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 3 Nov 2007 01:50:31 +0000 Subject: [PATCH] (handle_stop): Move some code out of loop. --- src/ChangeLog | 4 ++++ src/xdisp.c | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 1d33322996e..42ebbddb652 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-11-03 Richard Stallman + + * xdisp.c (handle_stop): Move some code out of loop. + 2007-11-01 Johan Bockg,Ae(Brd * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string): diff --git a/src/xdisp.c b/src/xdisp.c index 9e3a3bade1f..ef8c6c836aa 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3073,16 +3073,18 @@ handle_stop (it) if (it->method == GET_FROM_DISPLAY_VECTOR) handle_overlay_change_p = 0; - /* Handle overlay changes. */ + /* Handle overlay changes. + This sets HANDLED to HANDLED_RECOMPUTE_PROPS + if it finds overlays. */ if (handle_overlay_change_p) handled = handle_overlay_change (it); - - /* Determine where to stop next. */ - if (handled == HANDLED_NORMALLY) - compute_stop_pos (it); } } while (handled == HANDLED_RECOMPUTE_PROPS); + + /* Determine where to stop next. */ + if (handled == HANDLED_NORMALLY) + compute_stop_pos (it); } -- 2.39.2