Skip to content

Commit ac6a34e

Browse files
phanenibhagwan
authored andcommitted
fix: don't ignore err in action
1 parent bb3e837 commit ac6a34e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lua/fzf-lua/shell.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ function M.raw_action(fn, fzf_field_expression, debug)
123123
end
124124

125125
-- pipe must be closed, otherwise terminal will freeze
126-
if not ok then on_complete() end
126+
if not ok then
127+
utils.err(ret)
128+
on_complete()
129+
end
127130

128131
if type(ret) == "string" then
129132
uv.write(pipe, ret, on_complete)

0 commit comments

Comments
 (0)