Skip to content

Commit dc163bf

Browse files
committed
[#2258] show bottom line when having status
1 parent a905a28 commit dc163bf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pkg/gui/app_status_manager.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ func (m *statusManager) getStatusString() string {
8282
return topStatus.message
8383
}
8484

85+
func (m *statusManager) showStatus() bool {
86+
return len(m.statuses) > 0
87+
}
88+
8589
func (gui *Gui) toast(message string) {
8690
gui.statusManager.addToastStatus(message)
8791

pkg/gui/arrangement.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (gui *Gui) getWindowDimensions(informationStr string, appStatus string) map
3131

3232
extrasWindowSize := gui.getExtrasWindowSize(height)
3333

34-
showInfoSection := gui.c.UserConfig.Gui.ShowBottomLine || (gui.State.Searching.isSearching || gui.isAnyModeActive())
34+
showInfoSection := gui.c.UserConfig.Gui.ShowBottomLine || gui.State.Searching.isSearching || gui.isAnyModeActive() || gui.statusManager.showStatus()
3535
infoSectionSize := 0
3636
if showInfoSection {
3737
infoSectionSize = 1

0 commit comments

Comments
 (0)