From d16581ef7d86d027915a81acb89cf4637f238305 Mon Sep 17 00:00:00 2001 From: fcying Date: Wed, 21 Dec 2022 15:54:23 +0800 Subject: [PATCH] fix: misidentification invert and files_with_matches (#2240) (#2262) --- lua/telescope/builtin/__files.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/telescope/builtin/__files.lua b/lua/telescope/builtin/__files.lua index dd54125..592098a 100644 --- a/lua/telescope/builtin/__files.lua +++ b/lua/telescope/builtin/__files.lua @@ -73,7 +73,9 @@ local opts_contain_invert = function(args) if #v >= 2 and v:sub(1, 1) == "-" and v:sub(2, 2) ~= "-" then for i = 2, #v do local vi = v:sub(i, i) - if vi == "v" then + if vi == "=" then -- ignore option -g=xxx + break + elseif vi == "v" then invert = true elseif vi == "l" then files_with_matches = true