Skip to content

Commit e39b6a5

Browse files
authored
Merge pull request #12 from rootiest/v2.2.5
👽 Compat(termopen): update deprecated api call for termopen
2 parents 0a6cdeb + 83601f5 commit e39b6a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/nvim_updater/utils.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ function U.open_floating_terminal(command_or_opts, filetype, ispreupdate, autocl
293293
end
294294

295295
-- Run the terminal command
296-
vim.fn.termopen(command, {
296+
vim.fn.jobstart(command, {
297+
term = true, -- Use terminal mode
297298
on_stdout = function(_, data)
298299
if data then
299300
for _, line in ipairs(data) do

0 commit comments

Comments
 (0)