scenario: add note to a note in a column by itself Before this commit, the new note would seem to be added fine, but the old note's link would never be persisted.
It isn't enough just to fix run.lua, I also need to make add_note and populate_unroll_column behave more composably. Which increases the risk that this bugfix is going to introduce cascading bugs. (There must have been some reason I was erroring out when trying to unroll a note with no next link? And yet the check only occurs for the very first node in the chain?) But hopefully we're going in the right direction and any follow-on bugs will eventually damp down to 0. This seems worth doing even if it introduces bugs.
VUPAAFJL3JDSTGMBJMJUNT4EHFEL73Y5S4BEJZMFLNZUKNKWHGAAC
THMAJREPN2ITTUXEM33E2XFA3WBK4OHY7PCGEJQZ53ZQNALIZN6QC
4ZLXI37LBOUJUY4HF4GL4UUJQ6DZG4RLKVX5BWZHSFT5AQ2QAHQAC
KKMFQDR43ZWVCDRHQLWWX3FCWCFA3ZSXYOBRJNPHUQZR2XPKWULAC
JMUE7GSN6QDQZ6NDRB55MRJMKJN6LBD6MVQPKROYPDOIXM7I3XNQC
IOYWCTDEHO4GHC777JYUODJSSHL2SJWYTUG5PQPZOG5HEVR6XXYQC
6AOE67ORA4UISCORG7NRSUMCFYRVLGY3FBQHQOPZFXG3CN6JDMFQC
VHQCNMARPMNBSIUFLJG7HVK4QGDNPCGNVFLHS3I4IGNVSV5MRLYQC
QMWB3N3NKEACQBGY7JRFW5J74Z74CBLKJC2EDJJEDV7NKM2NQCGQC
GQBUV2XOMEPMTXMPCBQWGGIUXGQDX77VTGPFIG6YT7G64ASOYHXQC
32UWO2J35LPPYVWLGE6QUKPU7CY7PNM4NMNQOMWUXF7I34XIUSGAC
T62BH5VBLTDYHIEGFPJ7PB77J4JDX3D7RRI3RALZ2PWHJXW5TW3AC
FABMSSVRBBZSZXIQ3CDAPN2TRJRRURG72RPHCATKNT4VACRN4EJQC
WO73G45YHL27GXZIQRLFPMIZSOTO7UOUXPOFKBP7APKYLEGYHL7AC
X6ZGPVAYTRLUQBJBUGQWPZBHVBLEKVDPJ53MZJUD3LRKUWSBPBVQC
HD2HHK5EGCPCAV4CK737F554CYCF6HKDLJZFLRU2TYV2F554WITAC
D3FRDRWOY6VGMAOGR35GPX7QYBEHDT6J4JKUZCGDEFDPWXGHD3YQC
JC64ZBDKHZ54FRG2HZ76PFVQYK4EIFLNU36KDQ762KMT2DG7M4HQC
5HOB5Y6ZDNJ42XMHQ7YWZTUCK4DAJRPYRECDWTKFSXZWQ4ZMMSNAC
table.insert(Notes_to_log, pane.id)
table.insert(Notes_to_log, new_pane.id)
print_and_log('1/pane: '..links_state(pane.id))
print_and_log('1/new_pane: '..links_state(new_pane.id))
if #Surface[Cursor_pane.col] == 1 and not array.find(Non_unique_links, rel) then
-- column has a single note; turn it into unroll
Surface[Cursor_pane.col] = {name=('%s from %s'):format(rel, pane.id)}
populate_unroll_column(Surface[Cursor_pane.col], pane.id, rel)
end
print_and_log('9/pane: '..links_state(pane.id))
print_and_log('9/new_pane: '..links_state(new_pane.id))