{"draft":null,"from":220,"to":221,"files":[{"path":"src/engine/view.ts","added":6,"removed":4,"diff":"--- a/src/engine/view.ts\n+++ b/src/engine/view.ts\n@@ -597,7 +597,7 @@\n \t/** Lay out one file: its line tree from the set's atoms, linearized. */\n \t#layout(path: string, complete: boolean): FileState {\n \t\tconst graph = this.graph;\n-\t\tif (graph.packedFiles && !this.#scratchMoves()) return this.#layoutPacked(path, complete);\n+\t\tif (graph.packedLayout && !this.#scratchMoves()) return this.#layoutPacked(path, complete);\n \t\tif (this.#scratchMoves())\n \t\t\treturn graph.withProjectionScratch((scratch) =>\n \t\t\t\tthis.#layoutResolved(\n@@ -632,9 +632,9 @@\n \t}\n \n \t/**\n-\t * Lay one file out from its packed history (abso Capacity, Graph.packedLines): the lines written in it, and in the\n-\t * files its moved-in lines came from, read a page at a time; the same tree and order as #layoutResolved, built in\n-\t * memory with no read per line.\n+\t * Lay one file out from its packed history (abso Capacity, Graph.packedLines): the lines written in it, in the files\n+\t * its moved-in lines came from, and in the files runs under any of those lines were written in, read a page at a\n+\t * time; the same tree and order as #layoutResolved, built in memory with no read per line.\n \t */\n \t#layoutPacked(path: string, complete: boolean): FileState {\n \t\tconst graph = this.graph;\n@@ -670,6 +670,8 @@\n \t\t\t\tif (by) by.push(deleter);\n \t\t\t\telse deleters.set(n, [deleter]);\n \t\t\t}\n+\t\t\t// Runs written elsewhere under this file's lines follow them; the loop reads their files too.\n+\t\t\tfor (const [parent, into] of graph.packedCrossings(file)) if (texts.has(parent)) files.add(into);\n \t\t}\n \t\tconst order = (a: Child, b: Child) =>\n \t\t\tb.replaces - a.replaces || b.lamport - a.lamport || b.seq - a.seq || a.k - b.k;"}],"unmatched":[]}