mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-03 00:41:56 -06:00
An ordinary draft typed over an unlocked, hidden Python cell on a protected sheet holds only what was typed. follow_open_draft dropped it after any command, and ui.inspect hid its text, because both checked whether the cell was a Python cell. They now check whether the draft holds code: a draft in Python mode, or one that began on a Python cell's code (py_cell). Test: a_draft_typed_over_a_hidden_python_cell_stays_open_through_commands (fails without the fix: the draft was dropped).