diff options
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/dummies.go | 2 | ||||
-rw-r--r-- | pkg/gui/gui.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/dummies.go b/pkg/gui/dummies.go index 144df1019..7bc36ff33 100644 --- a/pkg/gui/dummies.go +++ b/pkg/gui/dummies.go @@ -8,13 +8,13 @@ import ( "github.com/jesseduffield/lazygit/pkg/utils" ) -// NewDummyGui creates a new dummy GUI for testing func NewDummyUpdater() *updates.Updater { newAppConfig := config.NewDummyAppConfig() dummyUpdater, _ := updates.NewUpdater(utils.NewDummyCommon(), newAppConfig, oscommands.NewDummyOSCommand()) return dummyUpdater } +// NewDummyGui creates a new dummy GUI for testing func NewDummyGui() *Gui { newAppConfig := config.NewDummyAppConfig() dummyGui, _ := NewGui(utils.NewDummyCommon(), newAppConfig, &git_commands.GitVersion{}, NewDummyUpdater(), false, "", nil) diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 9de9ca2bc..a4579bc8c 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -342,7 +342,7 @@ func (gui *Gui) onNewRepo(startArgs appTypes.StartArgs, contextKey types.Context return nil } -// reuseState determines if we pull the repo state from our repo state map or +// resetState determines if we pull the repo state from our repo state map or // just re-initialize it. For now we're only re-using state when we're going // in and out of submodules, for the sake of having the cursor back on the submodule // when we return. |