Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Conni2461 committed Mar 30, 2021
1 parent 852e589 commit d8536e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/telescope/pickers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ end
function Picker:get_status_updater(prompt_win, prompt_bufnr)
return function()
local text = self:get_status_text()
if self.closed == true or not vim.api.nvim_buf_is_valid(prompt_bufnr) then return end
if self.closed or not vim.api.nvim_buf_is_valid(prompt_bufnr) then return end
local current_prompt = vim.api.nvim_buf_get_lines(prompt_bufnr, 0, 1, false)[1]
if not current_prompt then
return
Expand Down Expand Up @@ -934,7 +934,7 @@ end

function Picker:get_result_processor(prompt, status_updater)
return function(entry)
if self.closed == true or self:is_done() then return end
if self.closed or self:is_done() then return end

self:_increment("processed")

Expand All @@ -954,7 +954,7 @@ function Picker:get_result_processor(prompt, status_updater)
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)
log.debug("SKIPPING", entry.value, "because", v)
self:_decrement("processed")
return
end
Expand Down

0 comments on commit d8536e8

Please sign in to comment.