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

@@ -31,7 +31,12 @@ func NewTabFromView(v *View) *Tab {
w, h := screen.Size()
t.tree.width = w
t.tree.height = h - 1
t.tree.height = h
if globalSettings["infobar"].(bool) {
t.tree.height--
}
return t
}
@@ -49,7 +54,12 @@ func (t *Tab) Cleanup() {
func (t *Tab) Resize() {
w, h := screen.Size()
t.tree.width = w
t.tree.height = h - 1
t.tree.height = h
if globalSettings["infobar"].(bool) {
t.tree.height--
}
t.tree.ResizeSplits()
}