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

(cherry picked from commit da58fe8fd2)
This commit is contained in:
zeertzjq
2026-03-31 11:17:33 +08:00
committed by github-actions[bot]
parent a4df02aa03
commit b2702913b9
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