summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/scripts/optwin.lua
diff options
context:
space:
mode:
authorKyle <50718101+kylesower@users.noreply.github.com>2026-04-24 13:45:20 -0500
committerGitHub <noreply@github.com>2026-04-24 14:45:20 -0400
commit66149ca6681102ff758b516984a1ccfe2ce0d974 (patch)
treedda7144c33a7cc261e453a40ce35711f53b50818 /runtime/scripts/optwin.lua
parent393f687503a319a6f521e8335b4dd8030e3ea67b (diff)
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.
Diffstat (limited to 'runtime/scripts/optwin.lua')
-rw-r--r--runtime/scripts/optwin.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/scripts/optwin.lua b/runtime/scripts/optwin.lua
index ff5bd8d7f6..940a41164c 100644
--- a/runtime/scripts/optwin.lua
+++ b/runtime/scripts/optwin.lua
@@ -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' },
},
}