summaryrefslogtreecommitdiff
path: root/redo/window.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/window.go')
-rw-r--r--redo/window.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/redo/window.go b/redo/window.go
index 27160c2..fd5c437 100644
--- a/redo/window.go
+++ b/redo/window.go
@@ -41,6 +41,7 @@ func NewWindow(title string, width int, height int) *Request {
// Example:
// w := ui.GetNewWindow(ui.Do, "Main Window")
func GetNewWindow(c Doer, title string, width int, height int) Window {
- c <- newWindow(title, width, height)
- return (<-c.resp).(Window)
+ req := newWindow(title, width, height)
+ c <- req
+ return (<-req.resp).(Window)
}