Skip to content

Commit dbc154f

Browse files
authored
fix(repl/builtin): regression introduced in v4.4.1 (#438)
Fixes #437
1 parent d0aab1c commit dbc154f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/haskell-tools/repl/builtin.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ local function buf_create_repl(bufnr, cmd, opts)
7575

7676
-- TODO(0.11): Replace with vim.fn.jobstart(full_command, { term = true })
7777
-- run the command
78+
local job_id
7879
---@diagnostic disable-next-line: deprecated
7980
if type(vim.fn.termopen) == 'function' then
8081
---@diagnostic disable-next-line: deprecated
81-
vim.fn.termopen(cmd, opts)
82+
job_id = vim.fn.termopen(cmd, opts)
8283
else
8384
opts.term = true
84-
vim.fn.jobstart(cmd, opts)
85+
job_id = vim.fn.jobstart(cmd, opts)
8586
end
8687

87-
local job_id = vim.fn.jobstart(cmd, opts)
8888
if not job_id then
8989
log.error('repl.builtin: Failed to open a terminal')
9090
vim.notify('haskell-tools: Could not start the repl.', vim.log.levels.ERROR)

0 commit comments

Comments
 (0)