mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-03 00:41:56 -06:00
Deleting part of a range that xl() reads (row 2 of A1:A3) shortens the reference instead of making it #REF!, and inserting rows inside the range lengthens it; either way the data the code reads changed, but the cell kept its result. rewrite_python_refs now treats a reference whose rows or columns changed in number like a deleted one: the cell is new code (#BLOCKED!) with no kept result. A reference that only moves keeps the result. Test: deleting_the_data_python_code_reads_drops_its_kept_result now covers a partial deletion and an insertion inside the range (fails without the fix).