feat(tui): restore 'ttyfast' to control tty requests #38699

Problem:
When running nvim on a remote machine over SSH, if there is high ping,
then bg detection may not complete in time. This results in a warning
every time nvim is started. #38648

Solution:
Restore 'ttyfast' option and allow it to control whether or not bg
detection is performed. Because this is during startup and before any
user config or commands, we use the environment variable
`NVIM_NOTTYFAST` to allow disabling `ttyfast` during initialization.
This commit is contained in:
Kyle
2026-04-24 13:45:20 -05:00
committed by GitHub
parent 393f687503
commit 66149ca668
11 changed files with 53 additions and 9 deletions

View File

@@ -455,6 +455,7 @@ local options_list = {
{ 'busy', N_ 'buffer is busy' },
{ 'termpastefilter', N_ 'characters removed when pasting into terminal window' },
{ 'scrollback', N_ 'number of lines kept beyond the visible screen in terminal buffer' },
{ 'ttyfast', N_ 'assume terminal responds quickly, enabling more features' },
},
}