mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-11-30 09:16:47 +02:00
bump gocui fork to support getting view dimensions
This commit is contained in:
parent
f97a098c6f
commit
400301e8fa
4
Gopkg.lock
generated
4
Gopkg.lock
generated
@ -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"
|
||||
|
5
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
5
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user