fix(defaults): check for TUI on non-stdio channel on startup (#38581)

This commit is contained in:
zeertzjq
2026-03-31 11:17:33 +08:00
committed by GitHub
parent 96d6042689
commit da58fe8fd2
2 changed files with 22 additions and 18 deletions

View File

@@ -781,7 +781,7 @@ do
-- Check if a TTY is attached
local tty = nil
for _, ui in ipairs(vim.api.nvim_list_uis()) do
if ui.chan == 1 and ui.stdout_tty then
if ui.stdout_tty then
tty = ui
break
end