Skip to content

Commit 12920a4

Browse files
committed
refactor: replace deprecated termopen with jobstart
1 parent 6a6cc51 commit 12920a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/telescope/previewers/term_previewer.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,13 @@ previewers.new_termopen_previewer = function(opts)
200200
local term_opts = {
201201
cwd = opts.cwd or vim.uv.cwd(),
202202
env = opts.env or conf.set_env,
203+
term = true,
203204
}
204205

205206
local cmd = opts.get_command(entry, status)
206207
if cmd then
207208
vim.api.nvim_buf_call(bufnr, function()
208-
set_term_id(self, vim.fn.termopen(cmd, term_opts))
209+
set_term_id(self, vim.fn.jobstart(cmd, term_opts))
209210
end)
210211
end
211212
set_bufentry(self, entry)

0 commit comments

Comments
 (0)