Correct infobar and statusline options

This commit is contained in:
Zachary Yedidia
2019-01-14 22:16:44 -05:00
parent 055fff2b08
commit 812c7761dc
8 changed files with 55 additions and 54 deletions

View File

@@ -1046,8 +1046,9 @@ func (h *BufHandler) QuitAll() bool {
// AddTab adds a new tab with an empty buffer
func (h *BufHandler) AddTab() bool {
width, height := screen.Screen.Size()
iOffset := config.GetInfoBarOffset()
b := buffer.NewBufferFromString("", "", buffer.BTDefault)
tp := NewTabFromBuffer(0, 0, width, height-1, b)
tp := NewTabFromBuffer(0, 0, width, height-iOffset, b)
Tabs.AddTab(tp)
Tabs.SetActive(len(Tabs.List) - 1)