Merge pull request #14 from KenjiTakahashi/previewer_h
Pass height to the previewer
This commit is contained in:
commit
953249297f
2
ui.go
2
ui.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user