From d8c1eb879b5138627559cd62515bdaa657005ece Mon Sep 17 00:00:00 2001 From: hongkuang Date: Sun, 7 Apr 2024 16:09:26 +0800 Subject: pkg: fix some comment Signed-off-by: hongkuang --- pkg/gui/dummies.go | 2 +- pkg/gui/gui.go | 2 +- 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() -- cgit v1.2.3