From f1d36e01cd448fbf96d4b1a5e40ab6858d515f86 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sat, 26 Mar 2016 17:25:55 -0400 Subject: [PATCH] Add comments --- src/option.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/option.go b/src/option.go index 606e12b5..e4ffa884 100644 --- a/src/option.go +++ b/src/option.go @@ -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 {