1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-09 09:22:48 +03:00

Use GetPath accessor outside of filetree package

In preparation of making it private to the package.
This commit is contained in:
Stefan Haller
2025-02-28 21:12:10 +01:00
parent 2dfc3491bd
commit 53090b2c45
3 changed files with 6 additions and 6 deletions

View File

@@ -293,7 +293,7 @@ func getColorForChangeStatus(changeStatus string) style.TextStyle {
}
func fileNameAtDepth(node *filetree.Node[models.File], depth int) string {
splitName := split(node.Path)
splitName := split(node.GetPath())
name := join(splitName[depth:])
if node.File != nil && node.File.IsRename() {
@@ -314,7 +314,7 @@ func fileNameAtDepth(node *filetree.Node[models.File], depth int) string {
}
func commitFileNameAtDepth(node *filetree.Node[models.CommitFile], depth int) string {
splitName := split(node.Path)
splitName := split(node.GetPath())
name := join(splitName[depth:])
return name