zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.9k stars 1.17k forks source link

[Bug] Overwriting of configuration file #3360

Closed mdziczkowski closed 3 months ago

mdziczkowski commented 3 months ago

Specifications

Issue description

Done steps:

  1. I had customized the settings.json file (according to the documentation)

  2. I had edited using micro a text file

  3. After opening another file I had noticed that micro doesn't work as customized

  4. I had opened the settings.json file and saw that the content was replaced and restored to the default (orginal) value

  5. I got uppset about loosing the settings and annoyed to need to re-do it from the start

JoeKar commented 3 months ago

This was already reported with #2531, #2647 and fixed with #3009. The fix is not in any release yet, but can be obtained with the actual nightly version. Be aware of the fact, that the settings.json will be updated in case a option will be set with a non-default value via > set <option> <value>.