diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 624ab00..09a062f 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -1049,7 +1049,7 @@ function Picker:get_result_processor(find_id, prompt, status_updater) -- a ton of time on large results. log.trace("Processing result... ", entry) for _, v in ipairs(self.file_ignore_patterns or {}) do - local file = type(entry.value) == "string" and entry.value or entry.filename + local file = vim.F.if_nil(entry.filename, type(entry.value) == "string" and entry.value) -- false if none is true if file then if string.find(file, v) then log.trace("SKIPPING", entry.value, "because", v)