From 0ad6ed361e6fac6618a57da7295c2a2f090e629c Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Mon, 26 Aug 2019 12:58:37 -0700 Subject: [PATCH] Pad syscall correctly in getTermWindowSize Fixes #33 --- gui_others.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gui_others.go b/gui_others.go index 0ea1b2b9..5d247a19 100644 --- a/gui_others.go +++ b/gui_others.go @@ -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