summaryrefslogtreecommitdiff
path: root/redo/zz_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/zz_test.go')
-rw-r--r--redo/zz_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/redo/zz_test.go b/redo/zz_test.go
index 529c43b..46f00e2 100644
--- a/redo/zz_test.go
+++ b/redo/zz_test.go
@@ -146,12 +146,16 @@ func (tw *testwin) make(done chan struct{}) {
}
}
+// this must be on the heap thanks to moving stacks
+// soon even this won't be enough...
+var tw *testwin
+
// because Cocoa hates being run off the main thread, even if it's run exclusively off the main thread
func init() {
flag.BoolVar(&spaced, "spaced", false, "enable spacing")
flag.Parse()
go func() {
- tw := new(testwin)
+ tw = new(testwin)
done := make(chan struct{})
Do(func() { tw.make(done) })
<-done