fix(terminal): check for 0.11

This commit is contained in:
Folke Lemaitre 2025-02-11 14:44:44 +01:00
parent 8d5ae25806
commit 6e45829879
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -71,7 +71,7 @@ local terminals = {}
local function jobstart(cmd, opts)
opts = opts or {}
local fn = vim.fn.jobstart
if vim.fn.has("nvim-0.10") == 0 and opts.term then
if vim.fn.has("nvim-0.11") == 0 and opts.term then
opts.term = nil
fn = vim.fn.termopen
end