diff --git a/exec/fseditor.js b/exec/fseditor.js
index f76e4927df4e7b97d3d4a6200d5e886c84b721eb..48539ef15042a4d89aef15b0948b516db790165a 100644
--- a/exec/fseditor.js
+++ b/exec/fseditor.js
@@ -299,7 +299,7 @@ function unwrap_line(l)
 	}
 	if(old_lines!=line.length) {
 		/* We need to redraw everything... line(s) deleted */
-		for(;l>line.length;l++)
+		for(;l<line.length;l++)
 			draw_line(l);
 	}
 	return(ret);