diff options
| author | Jeff Carr <[email protected]> | 2025-02-01 21:28:52 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-01 21:28:52 -0600 |
| commit | ac9c6617e3f70ff53198793806811bc28198060f (patch) | |
| tree | cca73a4b0f7fb65ddd5f3f6a4e6684c120f84001 /stdoutShow.go | |
| parent | d5d02620133ef27303ab6af351e30cd70470de46 (diff) | |
closer to mouse drag not being annoyingly wrong
Diffstat (limited to 'stdoutShow.go')
| -rw-r--r-- | stdoutShow.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stdoutShow.go b/stdoutShow.go index 3ded809..4b6d4d0 100644 --- a/stdoutShow.go +++ b/stdoutShow.go @@ -13,9 +13,6 @@ import ( "go.wit.com/widget" ) -var outputW int = 180 -var outputH int = 40 - func showMsg(g *gocui.Gui, v *gocui.View) error { var l string var err error @@ -39,6 +36,9 @@ func showMsg(g *gocui.Gui, v *gocui.View) error { func makeOutputWidget(g *gocui.Gui, stringFromMouseClick string) *gocui.View { maxX, maxY := g.Size() + var outputW int = 180 + var outputH int = 40 + if me.treeRoot == nil { // keep skipping this until the binary tree is initialized return nil |
