mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fix(osc52): do not use 'vim.iter' (#27218)
Problem: Using 'vim.iter' loads it during startup. Solution: Do not use 'vim.iter'.
This commit is contained in:
parent
28d1640dd6
commit
a9df0c5ce6
@ -1,6 +1,10 @@
|
|||||||
local tty = vim.iter(vim.api.nvim_list_uis()):any(function(ui)
|
local tty = false
|
||||||
return ui.chan == 1 and ui.stdout_tty
|
for _, ui in ipairs(vim.api.nvim_list_uis()) do
|
||||||
end)
|
if ui.chan == 1 and ui.stdout_tty then
|
||||||
|
tty = true
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if not tty or vim.g.clipboard ~= nil or vim.o.clipboard ~= '' or not os.getenv('SSH_TTY') then
|
if not tty or vim.g.clipboard ~= nil or vim.o.clipboard ~= '' or not os.getenv('SSH_TTY') then
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user