diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-09-19 20:22:36 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-19 20:22:36 +1000 |
commit | 7b90d2496b56d89863b552b226f45b8de2bd1551 (patch) | |
tree | 7bc9c833b690690fd526a4933bf48f00ef54c539 /vendor/github.com/jesseduffield/gocui/view.go | |
parent | 3072c93e131152d3898ff1e98cc7999c79ecd195 (diff) | |
parent | 0367399cf3368c6e05b9187ac8a9c994eaf2fc9c (diff) |
Merge pull request #294 from jesseduffield/feature/recent-repos
Recent Repos Menu
Diffstat (limited to 'vendor/github.com/jesseduffield/gocui/view.go')
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/view.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/jesseduffield/gocui/view.go b/vendor/github.com/jesseduffield/gocui/view.go index 53ab06f8c..46b86ec2a 100644 --- a/vendor/github.com/jesseduffield/gocui/view.go +++ b/vendor/github.com/jesseduffield/gocui/view.go @@ -10,8 +10,8 @@ import ( "io" "strings" + "github.com/jesseduffield/termbox-go" "github.com/mattn/go-runewidth" - "github.com/nsf/termbox-go" ) // Constants for overlapping edges @@ -447,6 +447,10 @@ func (v *View) ViewBufferLines() []string { return lines } +func (v *View) ViewLinesHeight() int { + return len(v.viewLines) +} + // ViewBuffer returns a string with the contents of the view's buffer that is // shown to the user. func (v *View) ViewBuffer() string { |