mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-17 22:32:58 +02:00
pkg: fix some comment (#3481)
This commit is contained in:
commit
ed61b9a7f2
@ -8,13 +8,13 @@ import (
|
|||||||
"github.com/jesseduffield/lazygit/pkg/utils"
|
"github.com/jesseduffield/lazygit/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewDummyGui creates a new dummy GUI for testing
|
|
||||||
func NewDummyUpdater() *updates.Updater {
|
func NewDummyUpdater() *updates.Updater {
|
||||||
newAppConfig := config.NewDummyAppConfig()
|
newAppConfig := config.NewDummyAppConfig()
|
||||||
dummyUpdater, _ := updates.NewUpdater(utils.NewDummyCommon(), newAppConfig, oscommands.NewDummyOSCommand())
|
dummyUpdater, _ := updates.NewUpdater(utils.NewDummyCommon(), newAppConfig, oscommands.NewDummyOSCommand())
|
||||||
return dummyUpdater
|
return dummyUpdater
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewDummyGui creates a new dummy GUI for testing
|
||||||
func NewDummyGui() *Gui {
|
func NewDummyGui() *Gui {
|
||||||
newAppConfig := config.NewDummyAppConfig()
|
newAppConfig := config.NewDummyAppConfig()
|
||||||
dummyGui, _ := NewGui(utils.NewDummyCommon(), newAppConfig, &git_commands.GitVersion{}, NewDummyUpdater(), false, "", nil)
|
dummyGui, _ := NewGui(utils.NewDummyCommon(), newAppConfig, &git_commands.GitVersion{}, NewDummyUpdater(), false, "", nil)
|
||||||
|
@ -342,7 +342,7 @@ func (gui *Gui) onNewRepo(startArgs appTypes.StartArgs, contextKey types.Context
|
|||||||
return nil
|
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
|
// 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
|
// in and out of submodules, for the sake of having the cursor back on the submodule
|
||||||
// when we return.
|
// when we return.
|
||||||
|
@ -21,7 +21,7 @@ var gocuiColorMap = map[string]gocui.Attribute{
|
|||||||
"underline": gocui.AttrUnderline,
|
"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 {
|
func GetGocuiAttribute(key string) gocui.Attribute {
|
||||||
if utils.IsValidHexValue(key) {
|
if utils.IsValidHexValue(key) {
|
||||||
values := color.HEX(key).Values()
|
values := color.HEX(key).Values()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user