Fixing settings not being applied when saving as a new file by Neko-Box-Coder · Pull Request #3625 · micro-editor/micro (original) (raw)

When you have file type-specific settings, it won't get applied when you are saving to a new file.

So if you have something like:

"ft:c": {
    "colorcolumn": 50
}

Creating a new buffer and saving to a c file won't apply the colorcolumn settings. This is just for demonstration. Opening an existing file will however apply the settings as intended.

This patch fixes that.