mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 09:14:24 +00:00
fix(tui): remove DCS escaping in tmux (#32723)
Per https://github.com/tmux/tmux/issues/4386, tmux does not support DCS responses, even if the initial request was escaped.
This commit is contained in:
@@ -71,11 +71,6 @@ function M.query(caps, cb)
|
||||
|
||||
local query = string.format('\027P+q%s\027\\', table.concat(encoded, ';'))
|
||||
|
||||
-- If running in tmux, wrap with the passthrough sequence
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user