vsariola / sointu

Fork of 4klang that can target 386, amd64 and WebAssembly. Tools run on Windows, Mac & Linux
MIT License
239 stars 15 forks source link

Invalid YML is saved directly after deleting units #103

Closed LeStahL closed 10 months ago

LeStahL commented 10 months ago

Directly after deleting units, a syntactically wrong yaml file is saved when hitting CTRL+s.

It contains all the relevant information, but also extra parts at random places.

LeStahL commented 10 months ago

For example: bug.zip

vsariola commented 10 months ago

I hate os.OpenFile, how can it be so hard to get this thing right :D The file was not truncated while opened for writing. Fixed.