mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Merge pull request #294 from anandsudhir/hide-sigils-when-not-multiple-pages
Hide sigils when there is only one page to display
This commit is contained in:
commit
1e15b1cc29
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user