Bug fix for "update undo/redo in one shot"

- Previously after the last commit, the “update undo” still only
deletes the file without adding the old one back. This bug is now fixed.
- renamed “undoneCommands” to “canBeRedoneCommands” for better
understandability.