mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
fix(defaults): background detection in tmux (#26557)
Wrap the query with passthrough sequence
This commit is contained in:
parent
1d63a057a6
commit
5aa1ba3efe
@ -298,7 +298,11 @@ if tty then
|
||||
end,
|
||||
})
|
||||
|
||||
io.stdout:write('\027]11;?\007')
|
||||
local query = '\027]11;?\007'
|
||||
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()
|
||||
-- Delete the autocommand if no response was received
|
||||
|
Loading…
Reference in New Issue
Block a user