Add statusline option

Fixes #105
This commit is contained in:
Zachary Yedidia
2016-05-15 13:44:07 -04:00
parent e2efc963b7
commit aa8944304b
4 changed files with 21 additions and 6 deletions

View File

@@ -78,6 +78,7 @@ func DefaultSettings() map[string]interface{} {
"syntax": true,
"tabsToSpaces": false,
"ruler": true,
"statusline": true,
}
}
@@ -117,6 +118,10 @@ func SetOption(view *View, args []string) {
view.Buf.UpdateRules()
}
if option == "statusline" {
view.Resize(screen.Size())
}
err := WriteSettings(filename)
if err != nil {
messenger.Error("Error writing to settings.json: " + err.Error())