From a4f1644efaa0e3be884096711fcd5f7bf90c494c Mon Sep 17 00:00:00 2001 From: bhagwan Date: Sun, 22 Dec 2024 17:01:56 -0800 Subject: [PATCH] fix(complete_line): post refactor of lines (closes #1627) --- lua/fzf-lua/complete.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/fzf-lua/complete.lua b/lua/fzf-lua/complete.lua index 2aef82a2..5d594b8f 100644 --- a/lua/fzf-lua/complete.lua +++ b/lua/fzf-lua/complete.lua @@ -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)