Skip to content

Commit

Permalink
chore: remove commented unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Dec 18, 2024
1 parent 1fd9c17 commit 026ee1f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lua/fzf-lua/fzf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -255,20 +255,6 @@ function M.raw_fzf(contents, fzf_cli_args, opts)
-- remove flag start/mid of string
default_opts = default_opts:gsub(utils.lua_regex_escape(p) .. "[=%s]+.-%s+%-%-", " --")
end
-- NOTE: better support for this via `actions.normalize_selected`
--[[ local flags = { "--select-1", "-1" }
for _, p in ipairs(flags) do
local escaped = utils.lua_regex_escape(p)
repeat
local before, has_opt, after = default_opts:match("(.?)(" .. escaped .. ")(.?)")
if has_opt and #has_opt > 0
and before and (#before == 0 or string.sub(before, 1, 1) == " ")
and after and (#after == 0 or string.sub(after, 1, 1) == " ")
then
default_opts = default_opts:gsub(string.format("%s%s%s", before, escaped, after), "")
end
until not has_opt
end ]]
return default_opts
end)(),
-- Nullify user's RG config as this can cause conflicts
Expand Down

0 comments on commit 026ee1f

Please sign in to comment.