diff options
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r-- | pkg/gui/files_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index d3ecbdce4..7cb094837 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -130,7 +130,7 @@ func (gui *Gui) stagedFiles() []*commands.File { func (gui *Gui) trackedFiles() []*commands.File { files := gui.State.Files - result := make([]*commands.File, 0) + result := make([]*commands.File, 0, len(files)) for _, file := range files { if file.Tracked { result = append(result, file) |