Skip to content

Commit

Permalink
Merge pull request #294 from anandsudhir/hide-sigils-when-not-multipl…
Browse files Browse the repository at this point in the history
…e-pages

Hide sigils when there is only one page to display
  • Loading branch information
senorprogrammer authored Aug 13, 2018
2 parents cc7072e + 03732fd commit 1e15b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wtf/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1e15b1c

Please sign in to comment.