summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorLuke Kershaw <35707277+l-kershaw@users.noreply.github.com>2021-07-14 12:46:46 +0100
committerGitHub <noreply@github.com>2021-07-14 13:46:46 +0200
commita4896e5ef39a8006a8251d48d4cf24aac81a4f94 (patch)
tree44ef2170aa9ace82188c69176b3638a83b242668 /lua
parent999fad2ce514d869b736aa5d948d355fad89be8d (diff)
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`
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/builtin/files.lua2
1 files changed, 1 insertions, 1 deletions
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', "*/.*" })