Merge pull request #14 from KenjiTakahashi/previewer_h

Pass height to the previewer
This commit is contained in:
gokcehan 2016-09-01 01:34:05 +03:00 committed by GitHub
commit 953249297f

2
ui.go
View File

@ -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 {