1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

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
This commit is contained in:
Anand Sudhir Prayaga 2018-08-13 11:10:39 +02:00
parent 02d95693c4
commit a4b2383e92

View File

@ -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)