From a4896e5ef39a8006a8251d48d4cf24aac81a4f94 Mon Sep 17 00:00:00 2001 From: Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> Date: Wed, 14 Jul 2021 12:46:46 +0100 Subject: [PATCH] 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` --- lua/telescope/builtin/files.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/builtin/files.lua b/lua/telescope/builtin/files.lua index 5c36963..9aee76a 100644 --- a/lua/telescope/builtin/files.lua +++ b/lua/telescope/builtin/files.lua @@ -174,7 +174,7 @@ files.find_files = function(opts) table.insert(find_command, v) 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' } if not hidden then table.insert(find_command, { '-not', '-path', "*/.*" })