git-learning-game / oh-my-git

An interactive Git learning game!
https://ohmygit.org
Other
2k stars 145 forks source link

fake-editor: Will truncate files when closing using "X" #160

Open xim opened 1 year ago

xim commented 1 year ago

If you do e.g. vim foo and edit a file, then save, it works as expected.

If you try to dismiss the changes using the X button, however, the file is still opened for write but no content is written, leading to an empty file.