diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-04-07 11:06:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-07 11:06:42 +0200 |
commit | ed61b9a7f2e2ca07643ded8e33a6d38e57f32b22 (patch) | |
tree | 4db3bd4dca3e7879b42fe6d4fd14522730114a8f | |
parent | c02408bba0755f88d5d94ed624958edf0fb3199a (diff) | |
parent | d8c1eb879b5138627559cd62515bdaa657005ece (diff) |
pkg: fix some comment (#3481)
-rw-r--r-- | pkg/gui/dummies.go | 2 | ||||
-rw-r--r-- | pkg/gui/gui.go | 2 | ||||
-rw-r--r-- | pkg/theme/gocui.go | 2 |
3 files changed, 3 insertions, 3 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. diff --git a/pkg/theme/gocui.go b/pkg/theme/gocui.go index 6bda0c721..5f8e6a611 100644 --- a/pkg/theme/gocui.go +++ b/pkg/theme/gocui.go @@ -21,7 +21,7 @@ var gocuiColorMap = map[string]gocui.Attribute{ "underline": gocui.AttrUnderline, } -// GetAttribute gets the gocui color attribute from the string +// GetGocuiAttribute gets the gocui color attribute from the string func GetGocuiAttribute(key string) gocui.Attribute { if utils.IsValidHexValue(key) { values := color.HEX(key).Values() |