Don't clear infobar if not enabled

Fixes #1584
This commit is contained in:
Zachary Yedidia 2020-03-17 14:21:36 -04:00
parent 943ea15fa3
commit 18d540583b

View file

@ -209,13 +209,13 @@ func (i *InfoWindow) scrollToSuggestion() {
}
func (i *InfoWindow) Display() {
i.Clear()
x := 0
if config.GetGlobalOption("keymenu").(bool) {
i.displayKeyMenu()
}
if i.HasPrompt || config.GlobalSettings["infobar"].(bool) {
i.Clear()
x := 0
if config.GetGlobalOption("keymenu").(bool) {
i.displayKeyMenu()
}
if !i.HasPrompt && !i.HasMessage && !i.HasError {
return
}