# HG changeset patch # User Karl Heuer # Date 782443749 0 # Node ID 3bf81e215f18ad6909976e797b6de95c668b8360 # Parent 14cd96eda0e351777eae3687b19734c6d507302a (do_line_dance): Decrement index only once per loop. diff -r 14cd96eda0e3 -r 3bf81e215f18 src/xterm.c --- 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,