Hopefully fixed issue where terminal caused crashes bcz weird escaping

stuff
This commit is contained in:
2026-06-14 00:38:04 +03:00
parent a536006051
commit 668e2eba8a
2 changed files with 95 additions and 33 deletions

View File

@@ -467,7 +467,12 @@ function Compile_project(command)
BuildTerminalBuf = vim.api.nvim_create_buf(false, true)
vim.bo[BuildTerminalBuf].filetype = 'build_terminal'
vim.api.nvim_buf_call(BuildTerminalBuf, function()
vim.fn.termopen(command, vim.empty_dict())
-- vim.fn.termopen(command, vim.empty_dict())
-- local job_id = vim.fn.termopen(vim.o.shell)
local job_id = vim.fn.jobstart(vim.o.shell, { term = true })
if job_id > 0 then
vim.fn.chansend(job_id, command)
end
end)
local previous_buffer = vim.api.nvim_win_get_buf(new_build_win)