previewer fix for fish shell
This commit is contained in:
parent
ec2e870614
commit
b21f5a6308
@ -82,7 +82,7 @@ function Previewer.bat:cmdline(o)
|
||||
if self.opts._line_placeholder then
|
||||
highlight_line = string.format("--highlight-line={%d}", self.opts._line_placeholder)
|
||||
end
|
||||
return string.format("%s %s %s -- `%s`",
|
||||
return string.format('sh -c "%s %s %s -- `%s`"',
|
||||
self.cmd, self.args, highlight_line, self:action(o))
|
||||
--[[ return string.format("%s %s `%s` -- `%s`",
|
||||
self.cmd, self.args, self:action_line(), o.action) ]]
|
||||
@ -115,7 +115,7 @@ function Previewer.head:cmdline(o)
|
||||
if self.opts._line_placeholder then
|
||||
lines = string.format("--lines={%d}", self.opts._line_placeholder)
|
||||
end
|
||||
return string.format("%s %s %s -- `%s`",
|
||||
return string.format('sh -c "%s %s %s -- `%s`"',
|
||||
self.cmd, self.args, lines, self:action(o))
|
||||
--[[ return string.format("%s %s `%s` -- `%s`",
|
||||
self.cmd, self.args, self:action_line(), o.action) ]]
|
||||
|
Loading…
Reference in New Issue
Block a user