mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-24 09:50:24 +00:00
Add comments
This commit is contained in:
parent
b32f0eb94f
commit
f1d36e01cd
1 changed files with 2 additions and 0 deletions
|
|
@ -8,12 +8,14 @@ import (
|
|||
// The options that the user can set
|
||||
var options map[string]interface{}
|
||||
|
||||
// InitOptions initializes the options map and sets all options to their default values
|
||||
func InitOptions() {
|
||||
options = make(map[string]interface{})
|
||||
options["tabsize"] = 4
|
||||
options["colorscheme"] = "default"
|
||||
}
|
||||
|
||||
// SetOption prompts the user to set an option and checks that the response is valid
|
||||
func SetOption(view *View) {
|
||||
choice, canceled := messenger.Prompt("Option: ")
|
||||
if !canceled {
|
||||
|
|
|
|||
Loading…
Reference in a new issue