1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-21 12:16:54 +02:00

Fix misspells

This commit is contained in:
codesoap 2021-09-01 22:51:24 +02:00
parent 63072af5bc
commit c1d2aa61f3
4 changed files with 11 additions and 11 deletions

View File

@ -210,7 +210,7 @@ func (gui *Gui) getWindowDimensions(informationStr string, appStatus string) map
// The stash window by default only contains one line so that it's not hogging // The stash window by default only contains one line so that it's not hogging
// too much space, but if you access it it should take up some space. This is // too much space, but if you access it it should take up some space. This is
// the default behaviour when accordian mode is NOT in effect. If it is in effect // the default behaviour when accordion mode is NOT in effect. If it is in effect
// then when it's accessed it will have weight 2, not 1. // then when it's accessed it will have weight 2, not 1.
func (gui *Gui) getDefaultStashWindowBox() *boxlayout.Box { func (gui *Gui) getDefaultStashWindowBox() *boxlayout.Box {
gui.State.ContextManager.RLock() gui.State.ContextManager.RLock()
@ -259,9 +259,9 @@ func (gui *Gui) sidePanelChildren(width int, height int) []*boxlayout.Box {
fullHeightBox("stash"), fullHeightBox("stash"),
} }
} else if height >= 28 { } else if height >= 28 {
accordianMode := gui.Config.GetUserConfig().Gui.ExpandFocusedSidePanel accordionMode := gui.Config.GetUserConfig().Gui.ExpandFocusedSidePanel
accordianBox := func(defaultBox *boxlayout.Box) *boxlayout.Box { accordionBox := func(defaultBox *boxlayout.Box) *boxlayout.Box {
if accordianMode && defaultBox.Window == currentWindow { if accordionMode && defaultBox.Window == currentWindow {
return &boxlayout.Box{ return &boxlayout.Box{
Window: defaultBox.Window, Window: defaultBox.Window,
Weight: 2, Weight: 2,
@ -276,10 +276,10 @@ func (gui *Gui) sidePanelChildren(width int, height int) []*boxlayout.Box {
Window: "status", Window: "status",
Size: 3, Size: 3,
}, },
accordianBox(&boxlayout.Box{Window: "files", Weight: 1}), accordionBox(&boxlayout.Box{Window: "files", Weight: 1}),
accordianBox(&boxlayout.Box{Window: "branches", Weight: 1}), accordionBox(&boxlayout.Box{Window: "branches", Weight: 1}),
accordianBox(&boxlayout.Box{Window: "commits", Weight: 1}), accordionBox(&boxlayout.Box{Window: "commits", Weight: 1}),
accordianBox(gui.getDefaultStashWindowBox()), accordionBox(gui.getDefaultStashWindowBox()),
} }
} else { } else {
squashedHeight := 1 squashedHeight := 1

View File

@ -173,7 +173,7 @@ func (gui *Gui) getRandomTip() string {
constants.Links.Docs.CustomCommands, constants.Links.Docs.CustomCommands,
), ),
fmt.Sprintf( fmt.Sprintf(
"If you ever find a bug, do not hesistate to raise an issue on the repo:\n%s", "If you ever find a bug, do not hesitate to raise an issue on the repo:\n%s",
constants.Links.Issues, constants.Links.Issues,
), ),
} }

View File

@ -11,7 +11,7 @@ import (
) )
// macs for some bizarre reason cap the number of watchable files to 256. // macs for some bizarre reason cap the number of watchable files to 256.
// there's no obvious platform agonstic way to check the situation of the user's // there's no obvious platform agnostic way to check the situation of the user's
// computer so we're just arbitrarily capping at 200. This isn't so bad because // computer so we're just arbitrarily capping at 200. This isn't so bad because
// file watching is only really an added bonus for faster refreshing. // file watching is only really an added bonus for faster refreshing.
const MAX_WATCHED_FILES = 50 const MAX_WATCHED_FILES = 50

View File

@ -189,7 +189,7 @@ func TestTemplateFuncMapAddColors(t *testing.T) {
"\x1b[31m\x1b[1mbar\x1b[0m\x1b[0m", "\x1b[31m\x1b[1mbar\x1b[0m\x1b[0m",
}, },
{ {
"multiple string with diffrent colors", "multiple string with different colors",
"{{ .Foo | red }} - {{ .Foo | blue }}", "{{ .Foo | red }} - {{ .Foo | blue }}",
"\x1b[31mbar\x1b[0m - \x1b[34mbar\x1b[0m", "\x1b[31mbar\x1b[0m - \x1b[34mbar\x1b[0m",
}, },