fix: make_entry.gen_from_string is a factory and needs to be called (#2116)
This commit is contained in:
@@ -6,7 +6,7 @@ local log = require "telescope.log"
|
||||
|
||||
return function(opts)
|
||||
log.trace("Creating async_job:", opts)
|
||||
local entry_maker = opts.entry_maker or make_entry.gen_from_string()
|
||||
local entry_maker = opts.entry_maker or make_entry.gen_from_string(opts)
|
||||
|
||||
local fn_command = function(prompt)
|
||||
local command_list = opts.command_generator(prompt)
|
||||
|
||||
@@ -9,7 +9,7 @@ local await_count = 1000
|
||||
return function(opts)
|
||||
opts = opts or {}
|
||||
|
||||
local entry_maker = opts.entry_maker or make_entry.gen_from_string
|
||||
local entry_maker = opts.entry_maker or make_entry.gen_from_string(opts)
|
||||
local cwd = opts.cwd
|
||||
local env = opts.env
|
||||
local fn_command = assert(opts.fn_command, "Must pass `fn_command`")
|
||||
|
||||
@@ -10,7 +10,7 @@ return function(opts)
|
||||
input_results = opts.results
|
||||
end
|
||||
|
||||
local entry_maker = opts.entry_maker or make_entry.gen_from_string()
|
||||
local entry_maker = opts.entry_maker or make_entry.gen_from_string(opts)
|
||||
|
||||
local results = {}
|
||||
for k, v in ipairs(input_results) do
|
||||
|
||||
Reference in New Issue
Block a user