Merge pull request #14 from KenjiTakahashi/previewer_h

Pass height to the previewer
This commit is contained in:
gokcehan authored and GitHub committed 2016-09-01 01:34:05 +03:00
commit 953249297f
1 file changed
+1 -1
+1 -1
View File
@@ -257,7 +257,7 @@ func (win *Win) printr(reg *os.File) error {
} }
if len(gOpts.previewer) != 0 { 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() out, err := cmd.Output()
if err != nil { if err != nil {