mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-06 15:10:27 +09:00
Auto init settings if config doesn't exist
This commit is contained in:
@@ -28,6 +28,10 @@ var (
|
||||
parsedSettings map[string]interface{}
|
||||
)
|
||||
|
||||
func init() {
|
||||
parsedSettings = make(map[string]interface{})
|
||||
}
|
||||
|
||||
// Options with validators
|
||||
var optionValidators = map[string]optionValidator{
|
||||
"autosave": validateNonNegativeValue,
|
||||
|
||||
Reference in New Issue
Block a user