Skip to content

Commit

Permalink
fix(complete_line): post refactor of lines (closes ibhagwan#1627)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Dec 23, 2024
1 parent c3cfa2b commit a4f1644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/fzf-lua/complete.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ M.line = function(opts)
return vim.trim(line:sub(1, col))
end)()
opts.complete = function(selected, _, _, _)
local newline = selected[1]:match("^.*:%d+:%s(.*)")
local newline = selected[1]:match(" (.-)$")
return newline, #newline
end
return require "fzf-lua.providers.buffers".lines(opts)
Expand Down

0 comments on commit a4f1644

Please sign in to comment.