1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-09 09:22:48 +03:00

Add simple comments to uncommented functions.

This commit is contained in:
BlakeMScurr
2018-11-30 11:04:08 +13:00
parent 5c70d2724b
commit 643cdd3461
10 changed files with 75 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ func (b *Binding) GetDisplayStrings() []string {
return []string{b.GetKey(), b.Description}
}
// GetKey is a function
func (b *Binding) GetKey() string {
r, ok := b.Key.(rune)
key := ""
@@ -34,6 +35,7 @@ func (b *Binding) GetKey() string {
return key
}
// GetKeybindings is a function
func (gui *Gui) GetKeybindings() []*Binding {
bindings := []*Binding{
{