1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-04 10:34:55 +02:00

always show list counts

This commit is contained in:
Jesse Duffield 2022-04-16 15:59:02 +10:00
parent d3b6acf096
commit 2fa6d8037c

View File

@ -27,6 +27,10 @@ func (self *ListContextTrait) GetViewTrait() types.IViewTrait {
func (self *ListContextTrait) FocusLine() {
// we need a way of knowing whether we've rendered to the view yet.
self.viewTrait.FocusPoint(self.list.GetSelectedLineIdx())
self.setFooter()
}
func (self *ListContextTrait) setFooter() {
self.viewTrait.SetFooter(formatListFooter(self.list.GetSelectedLineIdx(), self.list.Len()))
}
@ -54,6 +58,7 @@ func (self *ListContextTrait) HandleRender() error {
content := utils.RenderDisplayStrings(self.getDisplayStrings(0, self.list.Len()))
self.viewTrait.SetContent(content)
self.c.Render()
self.setFooter()
return nil
}