diff options
| author | historia <[not public]> | 2026-06-15 21:22:38 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-15 21:22:38 -0400 |
| commit | fb651914cdc7111e3c5f6add5d209dc31d21c079 (patch) | |
| tree | a7b16f0960a3d7c388c8c00b4de1c6f0d4c645d8 /lua/denote-fzf-lua.lua | |
| parent | 3cdd2f186c302f2f6c9e63cf035e4f51a434a97b (diff) | |
| download | denote-fzf-lua-fb651914cdc7111e3c5f6add5d209dc31d21c079.tar.gz | |
fix: handle fzf_live callback returning table
Diffstat (limited to 'lua/denote-fzf-lua.lua')
| -rw-r--r-- | lua/denote-fzf-lua.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/denote-fzf-lua.lua b/lua/denote-fzf-lua.lua index 3fc4384..508730e 100644 --- a/lua/denote-fzf-lua.lua +++ b/lua/denote-fzf-lua.lua @@ -196,7 +196,8 @@ function M.search_contents(options) opts.fzf_opts = options.fzf_lua_opts.fzf_opts opts.actions = fzflua.defaults.actions.files fzflua.fzf_live(function(query) - return "rg --column --color=always -i -- " .. vim.fn.shellescape(query or "") + local q = type(query) == "table" and table.concat(query, " ") or query or "" + return "rg --column --color=always -i -- " .. vim.fn.shellescape(q) end, opts) end |
