mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-29 12:56:47 -06:00
Recovery copies were written with plain `save_bytes`, so a file recovered after a crash came back without its version history and branches, even though `file.recover` reads both. Copies now go through `save_bytes_with_history` like a normal save, with each open branch tab's latest edits (`branches::current`), since `sync` only puts those in before the next command. A copy was also only redone when the main file's revision changed, and a file with edits only in a branch tab didn't count as changed. Both checks now include the file's branch tabs.