mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
bump gocui fork to support getting view dimensions
This commit is contained in:
parent
f97a098c6f
commit
400301e8fa
2 changed files with 7 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue