From 08e46f9112e0ce4ca6c5f814c007012413177dea Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sun, 15 Oct 2017 15:35:19 -0400 Subject: [PATCH] Don't draw statusline if infobar is off and in use Fixes #873 --- cmd/micro/statusline.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/micro/statusline.go b/cmd/micro/statusline.go index 763f53c5..2605ef9b 100644 --- a/cmd/micro/statusline.go +++ b/cmd/micro/statusline.go @@ -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