bugfix: 'lgrep_curbuf,' 'tags_live_grep' on fish shell (closes #357)

main
bhagwan 2 years ago
parent f915ba0e9a
commit e2c6f8cbf9

@ -44,7 +44,7 @@ local get_grep_cmd = function(opts, search_query, no_esc)
if opts.filespec and #opts.filespec>0 then
search_path = opts.filespec
elseif opts.filename and #opts.filename>0 then
search_path = vim.fn.shellescape(opts.filename)
search_path = libuv.shellescape(opts.filename)
end
search_query = search_query or ''

@ -1,6 +1,7 @@
local core = require "fzf-lua.core"
local path = require "fzf-lua.path"
local utils = require "fzf-lua.utils"
local libuv = require "fzf-lua.libuv"
local config = require "fzf-lua.config"
local make_entry = require "fzf-lua.make_entry"
@ -13,7 +14,7 @@ local function get_tags_cmd(opts, flags)
cmd = "rg"
end
if opts.search and #opts.search>0 then
query = vim.fn.shellescape(opts.no_esc and opts.search or
query = libuv.shellescape(opts.no_esc and opts.search or
utils.rg_escape(opts.search))
elseif opts._curr_file and #opts._curr_file>0 then
query = vim.fn.shellescape(opts._curr_file)

Loading…
Cancel
Save