diff --git a/ui.go b/ui.go index 45ceb64..85fb24e 100644 --- a/ui.go +++ b/ui.go @@ -257,7 +257,7 @@ func (win *Win) printr(reg *os.File) error { } if len(gOpts.previewer) != 0 { - cmd := exec.Command(gOpts.previewer, reg.Name()) + cmd := exec.Command(gOpts.previewer, reg.Name(), strconv.Itoa(win.w), strconv.Itoa(win.h)) out, err := cmd.Output() if err != nil {