changeset 9577:3bf81e215f18

(do_line_dance): Decrement index only once per loop.
author Karl Heuer <kwzh@gnu.org>
date Tue, 18 Oct 1994 01:29:09 +0000
parents 14cd96eda0e3
children 35cdd4523abf
files src/xterm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Tue Oct 18 00:08:18 1994 +0000
+++ b/src/xterm.c	Tue Oct 18 01:29:09 1994 +0000
@@ -1343,7 +1343,7 @@
     if (line_dance[i] != -1 && (distance = line_dance[i]-i) < 0)
       {
 	for (j = i; (--j >= 0 && line_dance[j] != -1
-		     && line_dance[j]-j == distance); --j);
+		     && line_dance[j]-j == distance););
 	/* Copy (j,i] downward from (j+distance, i+distance] */
 	XCopyArea (x_current_display, FRAME_X_WINDOW (f),
 		   FRAME_X_WINDOW (f), f->display.x->normal_gc,