Fix #167 r3: repair wrap-ON renumber verify pass (removed tops var) #208

Closed
fen wants to merge 1 commits from fix-167-r3 into dev
+2 -2
View File
@@ -76,8 +76,8 @@
// settle a hair under N * line-height after the gutter is rebuilt; a // settle a hair under N * line-height after the gutter is rebuilt; a
// gutter pass that changes the code column width reflows it. Verify the // gutter pass that changes the code column width reflows it. Verify the
// placement one frame later and re-run if any line's row moved (#167). // placement one frame later and re-run if any line's row moved (#167).
var placed = {}; // rowIdx already holds each line's placement row for this pass.
for (var q = 0; q < tops.length; q++) placed[q] = Math.round((tops[q] - bodyTop) / lh); var placed = rowIdx.slice();
requestAnimationFrame(function () { requestAnimationFrame(function () {
var moved = false; var moved = false;
var tops2 = []; var tops2 = [];