Don't draw statusline if infobar is off and in use

Fixes #873
This commit is contained in:
Zachary Yedidia 2017-10-15 15:35:19 -04:00
parent 5af5140362
commit 08e46f9112

View file

@ -14,6 +14,10 @@ type Statusline struct {
// Display draws the statusline to the screen
func (sline *Statusline) Display() {
if messenger.hasPrompt && !GetGlobalOption("infobar").(bool) {
return
}
// We'll draw the line at the lowest line in the view
y := sline.view.Height + sline.view.y