diff options
| author | fcying <fcyingmk2@gmail.com> | 2022-12-21 15:54:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-21 08:54:23 +0100 |
| commit | d16581ef7d86d027915a81acb89cf4637f238305 (patch) | |
| tree | 099606c0c0a6664514a990894a3682005a7f2d59 /lua/telescope | |
| parent | 278c797b58020bd238b3a7e4c0b086a4414f8a34 (diff) | |
fix: misidentification invert and files_with_matches (#2240) (#2262)
Diffstat (limited to 'lua/telescope')
| -rw-r--r-- | lua/telescope/builtin/__files.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
