mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(dashboard): only check for piped stdin when in TUI. Ignore GUIs
This commit is contained in:
parent
c15953ee88
commit
3311d75f89
1 changed files with 2 additions and 2 deletions
|
@ -1037,8 +1037,8 @@ function M.setup()
|
|||
return
|
||||
end
|
||||
|
||||
-- don't open the dashboard if input is piped
|
||||
if uis[1].stdin_tty == false then
|
||||
-- don't open the dashboard if in TUI and input is piped
|
||||
if uis[1].stdout_tty and not uis[1].stdin_tty then
|
||||
M.status.reason = "stdin is not a tty"
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue