changeset 79323:973c113d9bfe

(handle_stop): Move some code out of loop.
author Richard M. Stallman <rms@gnu.org>
date Sat, 03 Nov 2007 01:50:16 +0000
parents bef6cef0e8f4
children bd6a3acc307b
files src/xdisp.c
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Nov 02 11:02:13 2007 +0000
+++ b/src/xdisp.c	Sat Nov 03 01:50:16 2007 +0000
@@ -3073,16 +3073,18 @@
 	  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);
 }