diff options
Diffstat (limited to 'vendor/github.com')
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/attribute.go | 2 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/gui.go | 2 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/keybinding.go | 2 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/view.go | 6 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/AUTHORS (renamed from vendor/github.com/nsf/termbox-go/AUTHORS) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/LICENSE (renamed from vendor/github.com/nsf/termbox-go/LICENSE) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/api.go (renamed from vendor/github.com/nsf/termbox-go/api.go) | 9 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/api_common.go (renamed from vendor/github.com/nsf/termbox-go/api_common.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/api_windows.go (renamed from vendor/github.com/nsf/termbox-go/api_windows.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/escwait.go (renamed from vendor/github.com/nsf/termbox-go/escwait.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/escwait_darwin.go (renamed from vendor/github.com/nsf/termbox-go/escwait_darwin.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/syscalls.go (renamed from vendor/github.com/nsf/termbox-go/syscalls.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/syscalls_darwin.go (renamed from vendor/github.com/nsf/termbox-go/syscalls_darwin.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/syscalls_darwin_amd64.go (renamed from vendor/github.com/nsf/termbox-go/syscalls_darwin_amd64.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/syscalls_dragonfly.go (renamed from vendor/github.com/nsf/termbox-go/syscalls_dragonfly.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/syscalls_freebsd.go (renamed from vendor/github.com/nsf/termbox-go/syscalls_freebsd.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/syscalls_linux.go (renamed from vendor/github.com/nsf/termbox-go/syscalls_linux.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/syscalls_netbsd.go (renamed from vendor/github.com/nsf/termbox-go/syscalls_netbsd.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/syscalls_openbsd.go (renamed from vendor/github.com/nsf/termbox-go/syscalls_openbsd.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/syscalls_windows.go (renamed from vendor/github.com/nsf/termbox-go/syscalls_windows.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/termbox.go (renamed from vendor/github.com/nsf/termbox-go/termbox.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/termbox_common.go (renamed from vendor/github.com/nsf/termbox-go/termbox_common.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/termbox_windows.go (renamed from vendor/github.com/nsf/termbox-go/termbox_windows.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/terminfo.go (renamed from vendor/github.com/nsf/termbox-go/terminfo.go) | 0 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/termbox-go/terminfo_builtin.go (renamed from vendor/github.com/nsf/termbox-go/terminfo_builtin.go) | 0 |
25 files changed, 17 insertions, 4 deletions
diff --git a/vendor/github.com/jesseduffield/gocui/attribute.go b/vendor/github.com/jesseduffield/gocui/attribute.go index bad758a1d..5b46b1427 100644 --- a/vendor/github.com/jesseduffield/gocui/attribute.go +++ b/vendor/github.com/jesseduffield/gocui/attribute.go @@ -4,7 +4,7 @@ package gocui -import "github.com/nsf/termbox-go" +import "github.com/jesseduffield/termbox-go" // Attribute represents a terminal attribute, like color, font style, etc. They // can be combined using bitwise OR (|). Note that it is not possible to diff --git a/vendor/github.com/jesseduffield/gocui/gui.go b/vendor/github.com/jesseduffield/gocui/gui.go index 4393c06c4..cb163e06d 100644 --- a/vendor/github.com/jesseduffield/gocui/gui.go +++ b/vendor/github.com/jesseduffield/gocui/gui.go @@ -7,7 +7,7 @@ package gocui import ( "errors" - "github.com/nsf/termbox-go" + "github.com/jesseduffield/termbox-go" ) var ( diff --git a/vendor/github.com/jesseduffield/gocui/keybinding.go b/vendor/github.com/jesseduffield/gocui/keybinding.go index 82d1acc9f..65d9ec6cf 100644 --- a/vendor/github.com/jesseduffield/gocui/keybinding.go +++ b/vendor/github.com/jesseduffield/gocui/keybinding.go @@ -4,7 +4,7 @@ package gocui -import "github.com/nsf/termbox-go" +import "github.com/jesseduffield/termbox-go" // Keybidings are used to link a given key-press event with a handler. type keybinding struct { 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 { diff --git a/vendor/github.com/nsf/termbox-go/AUTHORS b/vendor/github.com/jesseduffield/termbox-go/AUTHORS index fe26fb0fb..fe26fb0fb 100644 --- a/vendor/github.com/nsf/termbox-go/AUTHORS +++ b/vendor/github.com/jesseduffield/termbox-go/AUTHORS diff --git a/vendor/github.com/nsf/termbox-go/LICENSE b/vendor/github.com/jesseduffield/termbox-go/LICENSE index d9bc068ce..d9bc068ce 100644 --- a/vendor/github.com/nsf/termbox-go/LICENSE +++ b/vendor/github.com/jesseduffield/termbox-go/LICENSE diff --git a/vendor/github.com/nsf/termbox-go/api.go b/vendor/github.com/jesseduffield/termbox-go/api.go index d530ab5c5..4c828e482 100644 --- a/vendor/github.com/nsf/termbox-go/api.go +++ b/vendor/github.com/jesseduffield/termbox-go/api.go @@ -317,6 +317,9 @@ func PollEvent() Event { event.Type = EventKey status := extract_event(inbuf, &event, true) if event.N != 0 { + if event.N > len(inbuf) { + event.N = len(inbuf) + } copy(inbuf, inbuf[event.N:]) inbuf = inbuf[:len(inbuf)-event.N] } @@ -345,6 +348,9 @@ func PollEvent() Event { input_comm <- ev status := extract_event(inbuf, &event, true) if event.N != 0 { + if event.N > len(inbuf) { + event.N = len(inbuf) + } copy(inbuf, inbuf[event.N:]) inbuf = inbuf[:len(inbuf)-event.N] } @@ -359,6 +365,9 @@ func PollEvent() Event { status := extract_event(inbuf, &event, false) if event.N != 0 { + if event.N > len(inbuf) { + event.N = len(inbuf) + } copy(inbuf, inbuf[event.N:]) inbuf = inbuf[:len(inbuf)-event.N] } diff --git a/vendor/github.com/nsf/termbox-go/api_common.go b/vendor/github.com/jesseduffield/termbox-go/api_common.go index 5ca1371a5..5ca1371a5 100644 --- a/vendor/github.com/nsf/termbox-go/api_common.go +++ b/vendor/github.com/jesseduffield/termbox-go/api_common.go diff --git a/vendor/github.com/nsf/termbox-go/api_windows.go b/vendor/github.com/jesseduffield/termbox-go/api_windows.go index 7def30a67..7def30a67 100644 --- a/vendor/github.com/nsf/termbox-go/api_windows.go +++ b/vendor/github.com/jesseduffield/termbox-go/api_windows.go diff --git a/vendor/github.com/nsf/termbox-go/escwait.go b/vendor/github.com/jesseduffield/termbox-go/escwait.go index b7bbb891f..b7bbb891f 100644 --- a/vendor/github.com/nsf/termbox-go/escwait.go +++ b/vendor/github.com/jesseduffield/termbox-go/escwait.go diff --git a/vendor/github.com/nsf/termbox-go/escwait_darwin.go b/vendor/github.com/jesseduffield/termbox-go/escwait_darwin.go index dde69b6cb..dde69b6cb 100644 --- a/vendor/github.com/nsf/termbox-go/escwait_darwin.go +++ b/vendor/github.com/jesseduffield/termbox-go/escwait_darwin.go diff --git a/vendor/github.com/nsf/termbox-go/syscalls.go b/vendor/github.com/jesseduffield/termbox-go/syscalls.go index 4f52bb9af..4f52bb9af 100644 --- a/vendor/github.com/nsf/termbox-go/syscalls.go +++ b/vendor/github.com/jesseduffield/termbox-go/syscalls.go diff --git a/vendor/github.com/nsf/termbox-go/syscalls_darwin.go b/vendor/github.com/jesseduffield/termbox-go/syscalls_darwin.go index 25b78f7ab..25b78f7ab 100644 --- a/vendor/github.com/nsf/termbox-go/syscalls_darwin.go +++ b/vendor/github.com/jesseduffield/termbox-go/syscalls_darwin.go diff --git a/vendor/github.com/nsf/termbox-go/syscalls_darwin_amd64.go b/vendor/github.com/jesseduffield/termbox-go/syscalls_darwin_amd64.go index 11f25be79..11f25be79 100644 --- a/vendor/github.com/nsf/termbox-go/syscalls_darwin_amd64.go +++ b/vendor/github.com/jesseduffield/termbox-go/syscalls_darwin_amd64.go diff --git a/vendor/github.com/nsf/termbox-go/syscalls_dragonfly.go b/vendor/github.com/jesseduffield/termbox-go/syscalls_dragonfly.go index e03624ebc..e03624ebc 100644 --- a/vendor/github.com/nsf/termbox-go/syscalls_dragonfly.go +++ b/vendor/github.com/jesseduffield/termbox-go/syscalls_dragonfly.go diff --git a/vendor/github.com/nsf/termbox-go/syscalls_freebsd.go b/vendor/github.com/jesseduffield/termbox-go/syscalls_freebsd.go index e03624ebc..e03624ebc 100644 --- a/vendor/github.com/nsf/termbox-go/syscalls_freebsd.go +++ b/vendor/github.com/jesseduffield/termbox-go/syscalls_freebsd.go diff --git a/vendor/github.com/nsf/termbox-go/syscalls_linux.go b/vendor/github.com/jesseduffield/termbox-go/syscalls_linux.go index b88960de6..b88960de6 100644 --- a/vendor/github.com/nsf/termbox-go/syscalls_linux.go +++ b/vendor/github.com/jesseduffield/termbox-go/syscalls_linux.go diff --git a/vendor/github.com/nsf/termbox-go/syscalls_netbsd.go b/vendor/github.com/jesseduffield/termbox-go/syscalls_netbsd.go index 49a3355b9..49a3355b9 100644 --- a/vendor/github.com/nsf/termbox-go/syscalls_netbsd.go +++ b/vendor/github.com/jesseduffield/termbox-go/syscalls_netbsd.go diff --git a/vendor/github.com/nsf/termbox-go/syscalls_openbsd.go b/vendor/github.com/jesseduffield/termbox-go/syscalls_openbsd.go index 49a3355b9..49a3355b9 100644 --- a/vendor/github.com/nsf/termbox-go/syscalls_openbsd.go +++ b/vendor/github.com/jesseduffield/termbox-go/syscalls_openbsd.go diff --git a/vendor/github.com/nsf/termbox-go/syscalls_windows.go b/vendor/github.com/jesseduffield/termbox-go/syscalls_windows.go index 472d002a5..472d002a5 100644 --- a/vendor/github.com/nsf/termbox-go/syscalls_windows.go +++ b/vendor/github.com/jesseduffield/termbox-go/syscalls_windows.go diff --git a/vendor/github.com/nsf/termbox-go/termbox.go b/vendor/github.com/jesseduffield/termbox-go/termbox.go index fbe4c3de9..fbe4c3de9 100644 --- a/vendor/github.com/nsf/termbox-go/termbox.go +++ b/vendor/github.com/jesseduffield/termbox-go/termbox.go diff --git a/vendor/github.com/nsf/termbox-go/termbox_common.go b/vendor/github.com/jesseduffield/termbox-go/termbox_common.go index c3355cc25..c3355cc25 100644 --- a/vendor/github.com/nsf/termbox-go/termbox_common.go +++ b/vendor/github.com/jesseduffield/termbox-go/termbox_common.go diff --git a/vendor/github.com/nsf/termbox-go/termbox_windows.go b/vendor/github.com/jesseduffield/termbox-go/termbox_windows.go index 7752a175b..7752a175b 100644 --- a/vendor/github.com/nsf/termbox-go/termbox_windows.go +++ b/vendor/github.com/jesseduffield/termbox-go/termbox_windows.go diff --git a/vendor/github.com/nsf/termbox-go/terminfo.go b/vendor/github.com/jesseduffield/termbox-go/terminfo.go index ab2e7a198..ab2e7a198 100644 --- a/vendor/github.com/nsf/termbox-go/terminfo.go +++ b/vendor/github.com/jesseduffield/termbox-go/terminfo.go diff --git a/vendor/github.com/nsf/termbox-go/terminfo_builtin.go b/vendor/github.com/jesseduffield/termbox-go/terminfo_builtin.go index a94866067..a94866067 100644 --- a/vendor/github.com/nsf/termbox-go/terminfo_builtin.go +++ b/vendor/github.com/jesseduffield/termbox-go/terminfo_builtin.go |