mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-10 22:42:00 +02:00
always show list counts
This commit is contained in:
@@ -27,6 +27,10 @@ func (self *ListContextTrait) GetViewTrait() types.IViewTrait {
|
|||||||
func (self *ListContextTrait) FocusLine() {
|
func (self *ListContextTrait) FocusLine() {
|
||||||
// we need a way of knowing whether we've rendered to the view yet.
|
// we need a way of knowing whether we've rendered to the view yet.
|
||||||
self.viewTrait.FocusPoint(self.list.GetSelectedLineIdx())
|
self.viewTrait.FocusPoint(self.list.GetSelectedLineIdx())
|
||||||
|
self.setFooter()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (self *ListContextTrait) setFooter() {
|
||||||
self.viewTrait.SetFooter(formatListFooter(self.list.GetSelectedLineIdx(), self.list.Len()))
|
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()))
|
content := utils.RenderDisplayStrings(self.getDisplayStrings(0, self.list.Len()))
|
||||||
self.viewTrait.SetContent(content)
|
self.viewTrait.SetContent(content)
|
||||||
self.c.Render()
|
self.c.Render()
|
||||||
|
self.setFooter()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user