Skip to content

Commit

Permalink
feat: allow initial results in async_oneshot_finder (nvim-telescope#1461
Browse files Browse the repository at this point in the history
)
  • Loading branch information
fdschmidt93 authored Dec 3, 2021
1 parent 0c819d6 commit 9d7d322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/telescope/finders/async_oneshot_finder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ return function(opts)
local cwd = opts.cwd
local fn_command = assert(opts.fn_command, "Must pass `fn_command`")

local results = {}
local num_results = 0
local results = vim.F.if_nil(opts.results, {})
local num_results = #results

local job_started = false
local job_completed = false
Expand Down

0 comments on commit 9d7d322

Please sign in to comment.