Fix showing current index

This commit is contained in:
Syohei YOSHIDA 2014-07-03 16:12:08 +09:00
parent 2101415c1d
commit 68b862b182

View file

@ -184,7 +184,7 @@ CALCULATE_PAGE:
}
}
pmsg := fmt.Sprintf("%s [%d/%d]", v.Ctx.Matcher().String(), currentPage, maxPage)
pmsg := fmt.Sprintf("%s [%d/%d]", v.Ctx.Matcher().String(), currentPage.index, maxPage)
printTB(width-runewidth.StringWidth(pmsg), 0, termbox.ColorDefault, termbox.ColorDefault, pmsg)