by Skinnytorus » Saturday, 14.September 2013, 12:32
To repro: 1. Open some file (file1) 2. Open backup of another file (file2) 3. See that the file name of the backup file is file1 (not file2) which is incorrect.
Does wz save filename into the backup file? IMHO, on opening wz should read filename from the backup file (i.e. file2). There are lots of backup files in backup directory. Theoretically, you can choose to load any of them and not necessarily the last one. And the name of the backed up file and its name on load should be the same. Otherwise we have a mess..
I think it was made like that to auto recover the last file. But not adapted to search an old backup, even if this is possible... We can ever use open for that and search in the backup...
But I'm agree that if you open an old backup, it will reuse the filename of your previous file which is dangerous if you overwrite it...
Do you mean that you will use the actual filename for backup? I think the easiest way to do that is to add to filename something like "_bak#.wz4" on saving a backup copy of the file and then open it with its own filename (i.e. xyz_bak1.wz4). I think that would be sufficient to close the issue.