fix: misidentification invert and files_with_matches (#2240) (#2262)

(cherry picked from commit d16581ef7d)
This commit is contained in:
fcying
2022-12-21 15:54:23 +08:00
committed by Simon Hauser
parent bdb0cd51ff
commit 10151e4dbb
+3 -1
View File
@@ -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