mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(terminal): check for 0.11
This commit is contained in:
parent
8d5ae25806
commit
6e45829879
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue