summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorhongkuang <liurenhong@outlook.com>2024-04-07 16:09:26 +0800
committerhongkuang <liurenhong@outlook.com>2024-04-07 16:09:26 +0800
commitd8c1eb879b5138627559cd62515bdaa657005ece (patch)
tree4db3bd4dca3e7879b42fe6d4fd14522730114a8f /pkg/gui
parentc02408bba0755f88d5d94ed624958edf0fb3199a (diff)
pkg: fix some comment
Signed-off-by: hongkuang <liurenhong@outlook.com>
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/dummies.go2
-rw-r--r--pkg/gui/gui.go2
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.