expand ~ to HOME in previewer option

Mentioned in #5.
This commit is contained in:
Gokcehan 2016-09-15 14:27:14 +03:00
parent 991bbc628f
commit ceb1f2d15a

View File

@ -62,7 +62,7 @@ func (e *SetExpr) eval(app *App, args []string) {
case "ifs": case "ifs":
gOpts.ifs = e.val gOpts.ifs = e.val
case "previewer": case "previewer":
gOpts.previewer = e.val gOpts.previewer = strings.Replace(e.val, "~", envHome, -1)
case "shell": case "shell":
gOpts.shell = e.val gOpts.shell = e.val
case "showinfo": case "showinfo":