summaryrefslogtreecommitdiff
path: root/progressbar.go
diff options
context:
space:
mode:
Diffstat (limited to 'progressbar.go')
-rw-r--r--progressbar.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/progressbar.go b/progressbar.go
index bbc7f1b..80debdc 100644
--- a/progressbar.go
+++ b/progressbar.go
@@ -55,14 +55,14 @@ func (p *ProgressBar) make(window *sysData) error {
return nil
}
-func (p *ProgressBar) setRect(x int, y int, width int, height int) []resizerequest {
- return []resizerequest{resizerequest{
+func (p *ProgressBar) setRect(x int, y int, width int, height int, rr *[]resizerequest) {
+ *rr = append(*rr, resizerequest{
sysData: p.sysData,
x: x,
y: y,
width: width,
height: height,
- }}
+ })
}
func (p *ProgressBar) preferredSize() (width int, height int) {