]> git.lizzy.rs Git - micro.git/commitdiff
Don't draw statusline if infobar is off and in use
authorZachary Yedidia <zyedidia@gmail.com>
Sun, 15 Oct 2017 19:35:19 +0000 (15:35 -0400)
committerZachary Yedidia <zyedidia@gmail.com>
Sun, 15 Oct 2017 19:35:19 +0000 (15:35 -0400)
Fixes #873

cmd/micro/statusline.go

index 763f53c56f19b177955a8d6f88faf09b82b51c35..2605ef9b79413d26975ff401f6e2e883d9e657cc 100644 (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