mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 22:10:45 +00:00
fix(defaults): check for TUI on non-stdio channel on startup (#38581)
(cherry picked from commit da58fe8fd2)
This commit is contained in:
committed by
github-actions[bot]
parent
a4df02aa03
commit
b2702913b9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user