From a4b2383e923b002350385977956aaf8466d97528 Mon Sep 17 00:00:00 2001 From: Anand Sudhir Prayaga Date: Mon, 13 Aug 2018 11:10:39 +0200 Subject: [PATCH] Hide sigils when there is only one page to display Silis show up even when there is only one or no pages to display. They're not needed in these cases as there is nothing to navigate between.. Fix #291 --- wtf/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wtf/utils.go b/wtf/utils.go index b3b69ce0..7921a60b 100644 --- a/wtf/utils.go +++ b/wtf/utils.go @@ -134,7 +134,7 @@ func RowColor(module string, idx int) string { func SigilStr(len, pos int, view *tview.TextView) string { sigils := "" - if len > 0 { + if len > 1 { sigils = strings.Repeat(Config.UString("wtf.paging.pageSigil", "*"), pos) sigils = sigils + Config.UString("wtf.paging.selectedSigil", "_") sigils = sigils + strings.Repeat(Config.UString("wtf.paging.pageSigil", "*"), len-1-pos)