summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorBlakeMScurr <blakemscurr@gmail.com>2018-11-30 11:04:08 +1300
committerBlakeMScurr <blakemscurr@gmail.com>2018-11-30 11:04:08 +1300
commit643cdd3461007fafb1fd9284a65b54f36e55ddac (patch)
tree0266b3c0e5184e0da054d4310a7b301e208d056c /pkg/gui
parent5c70d2724b508c3021558162fbfd9792c2d77e63 (diff)
Add simple comments to uncommented functions.
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/commit_message_panel.go1
-rw-r--r--pkg/gui/keybindings.go2
-rw-r--r--pkg/gui/recent_repos_panel.go1
3 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/commit_message_panel.go b/pkg/gui/commit_message_panel.go
index c26b5573a..6f828312c 100644
--- a/pkg/gui/commit_message_panel.go
+++ b/pkg/gui/commit_message_panel.go
@@ -82,6 +82,7 @@ func (gui *Gui) getBufferLength(view *gocui.View) string {
return " " + strconv.Itoa(strings.Count(view.Buffer(), "")-1) + " "
}
+// RenderCommitLength is a function
func (gui *Gui) RenderCommitLength() {
if !gui.Config.GetUserConfig().GetBool("gui.commitLength.show") {
return
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 8d07429a6..6c1f6c296 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -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{
{
diff --git a/pkg/gui/recent_repos_panel.go b/pkg/gui/recent_repos_panel.go
index add987b32..a146166bf 100644
--- a/pkg/gui/recent_repos_panel.go
+++ b/pkg/gui/recent_repos_panel.go
@@ -14,6 +14,7 @@ type recentRepo struct {
path string
}
+// GetDisplayStrings is a function
func (r *recentRepo) GetDisplayStrings() []string {
yellow := color.New(color.FgMagenta)
base := filepath.Base(r.path)