mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 14:47:16 +09:00
Added StartOfLine and EndOfLine actions
This commit also adds error reporting for invalid json. Fixes #36.
This commit is contained in:
@@ -36,7 +36,10 @@ func InitSettings() {
|
||||
return
|
||||
}
|
||||
|
||||
json.Unmarshal(input, &settings)
|
||||
err = json.Unmarshal(input, &settings)
|
||||
if err != nil {
|
||||
TermMessage("Error reading settings.json:", err.Error())
|
||||
}
|
||||
} else {
|
||||
settings = DefaultSettings()
|
||||
err := WriteSettings(filename)
|
||||
|
||||
Reference in New Issue
Block a user