mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -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)
|
||||
return ui.chan == 1 and ui.stdout_tty
|
||||
end)
|
||||
local tty = false
|
||||
for _, ui in ipairs(vim.api.nvim_list_uis()) do
|
||||
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
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user