mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-02 10:50:25 +09:00
Add comments
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user