diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-30 17:19:01 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-04 09:07:15 +1100 |
commit | 9b2b0fc1226ebe0858fcbed59d87bcaae8c8a2e9 (patch) | |
tree | 8d7a9e4c321e40a9b0dab0f2260ec4131fb0eefe /pkg/gui/files_panel.go | |
parent | 96c2887fd0c1ca95e6b3d55756be8d424f8d905a (diff) |
WIP
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r-- | pkg/gui/files_panel.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index f1ac1d1a5..aa2f78447 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -7,6 +7,7 @@ import ( "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/commands" + "github.com/jesseduffield/lazygit/pkg/commands/loaders" "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/commands/oscommands" "github.com/jesseduffield/lazygit/pkg/config" @@ -553,7 +554,9 @@ func (gui *Gui) refreshStateFiles() error { prevNodes := gui.State.FileManager.GetAllItems() prevSelectedLineIdx := gui.State.Panels.Files.SelectedLineIdx - files := gui.GitCommand.GetStatusFiles(commands.GetStatusFileOptions{}) + files := loaders. + NewFileLoader(gui.Common, gui.GitCommand.Cmd, gui.GitCommand.GitConfig). + GetStatusFiles(loaders.GetStatusFileOptions{}) // for when you stage the old file of a rename and the new file is in a collapsed dir state.FileManager.RWMutex.Lock() |