Skip to content

Commit c268217

Browse files
committed
c
1 parent 7a6a0c5 commit c268217

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

lua/fzf-lua/shell.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,10 @@ M.stringify = function(contents, opts, fzf_field_index)
336336
if session then
337337
-- vim.print(session)
338338
if opts.PidObject then opts.PidObject:set(session.pid) end
339-
if opts.debug then session:write_nl("[DEBUG] [st] " .. vim.inspect(contents)) end
339+
if opts.debug then
340+
local str = (type(contents) == "string" and contents or vim.inspect(contents))
341+
session:write_nl("[DEBUG] [st] " .. str)
342+
end
340343
end
341344
end, fzf_field_index or "", opts.debug)
342345

tests/screenshots/tests-api_spec.lua---api---fzf_exec---rg---1-+-args-{-false-}

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
03|~ ╭─────────────────────────────────────────────────╮
55
04|~ │> 91/91 │
66
05|~ │──────────────────────────────────────────────── │
7-
06|~ │▌ [DEBUG] [st] "rg --files -g !.git -g !tests/··││
7+
06|~ │▌ [DEBUG] [st] rg --files -g !.git -g !tests/*··││
88
07|~ │ LICENSE ││
99
08|~ │ Makefile │
1010
09|~ │ OPTIONS.md │

0 commit comments

Comments
 (0)