implement gokcehan#606 (#945)
This commit is contained in:
parent
165fecbea0
commit
c5dfd6df51
8
nav.go
8
nav.go
@ -612,17 +612,21 @@ func (nav *nav) previewLoop(ui *ui) {
|
|||||||
break loop
|
break loop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
win := ui.wins[len(ui.wins)-1]
|
||||||
if clear && len(gOpts.previewer) != 0 && len(gOpts.cleaner) != 0 && nav.volatilePreview {
|
if clear && len(gOpts.previewer) != 0 && len(gOpts.cleaner) != 0 && nav.volatilePreview {
|
||||||
nav.exportFiles()
|
nav.exportFiles()
|
||||||
exportOpts()
|
exportOpts()
|
||||||
cmd := exec.Command(gOpts.cleaner, prev)
|
cmd := exec.Command(gOpts.cleaner, prev,
|
||||||
|
strconv.Itoa(win.w),
|
||||||
|
strconv.Itoa(win.h),
|
||||||
|
strconv.Itoa(win.x),
|
||||||
|
strconv.Itoa(win.y))
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
log.Printf("cleaning preview: %s", err)
|
log.Printf("cleaning preview: %s", err)
|
||||||
}
|
}
|
||||||
nav.volatilePreview = false
|
nav.volatilePreview = false
|
||||||
}
|
}
|
||||||
if len(path) != 0 {
|
if len(path) != 0 {
|
||||||
win := ui.wins[len(ui.wins)-1]
|
|
||||||
nav.preview(path, win)
|
nav.preview(path, win)
|
||||||
prev = path
|
prev = path
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user