diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-12-14 08:38:26 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 08:38:26 -0600 |
commit | ddcbc5c78a492b55951cd60ba91d3d4cbf35a5c5 (patch) | |
tree | a5b52b133551686645e1995fe318e51eb0ae1963 /runtime/lua/vim/_defaults.lua | |
parent | 7db9992445a69df16eb12d349d49ab8968e9a505 (diff) | |
download | rneovim-ddcbc5c78a492b55951cd60ba91d3d4cbf35a5c5.tar.gz rneovim-ddcbc5c78a492b55951cd60ba91d3d4cbf35a5c5.tar.bz2 rneovim-ddcbc5c78a492b55951cd60ba91d3d4cbf35a5c5.zip |
docs: add comment for OSC 11 tmux passthrough (#26566)
Diffstat (limited to 'runtime/lua/vim/_defaults.lua')
-rw-r--r-- | runtime/lua/vim/_defaults.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua index 2db82a04a1..b75a3dc69e 100644 --- a/runtime/lua/vim/_defaults.lua +++ b/runtime/lua/vim/_defaults.lua @@ -299,9 +299,15 @@ if tty then }) local query = '\027]11;?\007' + + -- tmux 3.3a and earlier do not query the parent terminal for background color. As of the + -- writing of this comment, 3.3a is the latest release, so a passthrough sequence is necessary. + -- The passthrough should be removed as soon as a tmux version later than 3.3a is released. + -- See: https://github.com/neovim/neovim/pull/26557 if os.getenv('TMUX') then query = string.format('\027Ptmux;%s\027\\', query:gsub('\027', '\027\027')) end + io.stdout:write(query) timer:start(1000, 0, function() |