mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Call getDisplayStrings with a valid range of model indices
It's nicer if clients can rely on the indices being valid, and don't have to clamp themselves.
This commit is contained in:
parent
473d989cde
commit
297a020abf
3 changed files with 8 additions and 9 deletions
|
@ -63,7 +63,7 @@ func (self *ListContextTrait) renderLines(startIdx int, endIdx int) string {
|
|||
columnAlignments = self.getColumnAlignments()
|
||||
}
|
||||
return utils.RenderDisplayStrings(
|
||||
self.getDisplayStrings(startIdx, endIdx),
|
||||
self.getDisplayStrings(startIdx, utils.Min(endIdx, self.list.Len())),
|
||||
columnAlignments)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue