diff --git a/Gopkg.lock b/Gopkg.lock index 4323983be..8f6f718bb 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -50,11 +50,11 @@ [[projects]] branch = "master" - digest = "1:82b3bbc50ba7b6065b0229ebf0fc990a76e47410acd510294e435aeb3523293e" + digest = "1:770db5f9b049ecc164570556c190c4ce875621d912c0c07eb6b557d3b1233266" name = "github.com/jesseduffield/gocui" packages = ["."] pruneopts = "NUT" - revision = "3c923f53ac9952af649af04a067405843558d56f" + revision = "b46a743016a3434674ed08b1944c711c1150a38e" [[projects]] digest = "1:8021af4dcbd531ae89433c8c3a6520e51064114aaf8eb1724c3cf911c497c9ba" diff --git a/vendor/github.com/jesseduffield/gocui/view.go b/vendor/github.com/jesseduffield/gocui/view.go index 9769bcfdb..9618153e9 100644 --- a/vendor/github.com/jesseduffield/gocui/view.go +++ b/vendor/github.com/jesseduffield/gocui/view.go @@ -121,6 +121,11 @@ func newView(name string, x0, y0, x1, y1 int, mode OutputMode) *View { return v } +// Dimensions returns the dimensions of the View +func Dimensions(v *View) (int, int, int, int) { + return v.x0, v.y0, v.x1, v.y1 +} + // Size returns the number of visible columns and rows in the View. func (v *View) Size() (x, y int) { return v.x1 - v.x0 - 1, v.y1 - v.y0 - 1