diff options
Diffstat (limited to 'vendor/github.com/jesseduffield/gocui/gui.go')
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/gui.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/github.com/jesseduffield/gocui/gui.go b/vendor/github.com/jesseduffield/gocui/gui.go index e5bf8125f..eccae45a3 100644 --- a/vendor/github.com/jesseduffield/gocui/gui.go +++ b/vendor/github.com/jesseduffield/gocui/gui.go @@ -134,6 +134,9 @@ type Gui struct { // frame of the current view. Highlight bool + // If ShowListFooter is true then show list footer (i.e. the part that says we're at item 5 out of 10) + ShowListFooter bool + // If Cursor is true then the cursor is enabled. Cursor bool @@ -723,7 +726,7 @@ func (g *Gui) flush() error { return err } } - if v.ContainsList { + if v.ContainsList && g.ShowListFooter { if err := g.drawListFooter(v, fgColor, bgColor); err != nil { return err } |