Add infobar option to disable the message line

Fixes #257
This commit is contained in:
Zachary Yedidia
2016-08-31 11:16:22 -04:00
parent 3105205ab8
commit b70db77c29
7 changed files with 31 additions and 8 deletions

View File

@@ -169,6 +169,7 @@ func DefaultGlobalSettings() map[string]interface{} {
"cursorline": true,
"ignorecase": false,
"indentchar": " ",
"infobar": true,
"ruler": true,
"savecursor": false,
"saveundo": false,
@@ -244,6 +245,12 @@ func SetOption(option, value string) error {
}
}
if option == "infobar" {
for _, tab := range tabs {
tab.Resize()
}
}
if _, ok := CurView().Buf.Settings[option]; ok {
for _, tab := range tabs {
for _, view := range tab.views {