From ba164376aaaabef82abbe534ef213851c959f0bd Mon Sep 17 00:00:00 2001 From: bhagwan Date: Mon, 5 Feb 2024 10:17:01 -0800 Subject: [PATCH] fix: help_native previewer (fixes #1029, caused by 76ddb46) --- lua/fzf-lua/previewer/fzf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/fzf-lua/previewer/fzf.lua b/lua/fzf-lua/previewer/fzf.lua index a7aba75e..ee932b18 100644 --- a/lua/fzf-lua/previewer/fzf.lua +++ b/lua/fzf-lua/previewer/fzf.lua @@ -49,7 +49,7 @@ function Previewer.base:fzf_delimiter() delim = "[:]" elseif not delim:match(":") then if delim:match("%[.*%]") then - delim = delim:match("(%[.*)%]") .. ":]" + delim = delim:gsub("%]", ":]") else -- remove surrounding quotes delim = delim:match("^'?(.*)'$?") or delim