Skip to content

Commit

Permalink
Merge pull request awesome-gocui#36 from josharian/fix-syscall-size
Browse files Browse the repository at this point in the history
Pad syscall correctly in getTermWindowSize
  • Loading branch information
glvr182 authored Aug 27, 2019
2 parents 4194559 + 0ad6ed3 commit 4e340cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gui_others.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func (g *Gui) getTermWindowSize() (int, int, error) {
var sz struct {
rows uint16
cols uint16
_ [2]uint16 // to match underlying syscall; see https://github.com/awesome-gocui/gocui/issues/33
}

var termw, termh int
Expand Down

0 comments on commit 4e340cb

Please sign in to comment.