mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 14:10:23 +09:00
config: Refactor parsed option handling
Validate the parsed options directly after read and inform about errors.
This commit is contained in:
@@ -273,6 +273,10 @@ func main() {
|
||||
screen.TermMessage(err)
|
||||
continue
|
||||
}
|
||||
if err = config.OptionIsValid(k, nativeValue); err != nil {
|
||||
screen.TermMessage(err)
|
||||
continue
|
||||
}
|
||||
config.GlobalSettings[k] = nativeValue
|
||||
config.VolatileSettings[k] = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user