fix: builtin find_files, find command win32 check == 0 (#989)

- changes check for Windows OS, as 0 is truthy, so `not 0` and `not 1` are both `false`
This commit is contained in:
Luke Kershaw
2021-07-14 12:46:46 +01:00
committed by GitHub
parent 999fad2ce5
commit a4896e5ef3

View File

@@ -174,7 +174,7 @@ files.find_files = function(opts)
table.insert(find_command, v) table.insert(find_command, v)
end end
end end
elseif 1 == vim.fn.executable("find") and not vim.fn.has('win32') then elseif 1 == vim.fn.executable("find") and vim.fn.has('win32') == 0 then
find_command = { 'find', '.', '-type', 'f' } find_command = { 'find', '.', '-type', 'f' }
if not hidden then if not hidden then
table.insert(find_command, { '-not', '-path', "*/.*" }) table.insert(find_command, { '-not', '-path', "*/.*" })