Use methods on view instead of functions for bindings

This commit is contained in:
Zachary Yedidia
2016-04-24 18:32:18 -04:00
parent 20ab7a44ab
commit 0ee6be3d0f
3 changed files with 65 additions and 65 deletions

View File

@@ -137,7 +137,7 @@ func (v *View) CanClose(msg string) bool {
if strings.ToLower(quit) == "yes" || strings.ToLower(quit) == "y" {
return true
} else if strings.ToLower(quit) == "save" || strings.ToLower(quit) == "s" {
Save(v)
v.Save()
return true
}
}