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