summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/telescope/pickers.lua')
-rw-r--r--lua/telescope/pickers.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index b066bd6..bf35aa2 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -439,9 +439,12 @@ function Picker:find()
log.trace("Processing result... ", entry)
for _, v in ipairs(self.file_ignore_patterns or {}) do
- if string.find(entry.value, v) then
- log.debug("SKPIPING", entry.value, "because", v)
- return
+ local file = type(entry.value) == 'string' and entry.value or entry.filename
+ if file then
+ if string.find(file, v) then
+ log.debug("SKPIPING", entry.value, "because", v)
+ return
+ end
end
end