mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Fall back to WithWaitingStatus if item is scrolled out of view
This commit is contained in:
parent
0fd4983c66
commit
f99c59b6d5
6 changed files with 39 additions and 3 deletions
|
@ -2,6 +2,7 @@ package filetree
|
|||
|
||||
import (
|
||||
"github.com/jesseduffield/lazygit/pkg/commands/models"
|
||||
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
||||
"github.com/samber/lo"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
@ -69,6 +70,11 @@ func (self *CommitFileTree) Len() int {
|
|||
return self.tree.Size(self.collapsedPaths) - 1 // ignoring root
|
||||
}
|
||||
|
||||
func (self *CommitFileTree) GetItem(index int) types.HasUrn {
|
||||
// Unimplemented because we don't yet need to show inlines statuses in commit file views
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *CommitFileTree) GetAllFiles() []*models.CommitFile {
|
||||
return self.getFiles()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue