mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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,
|
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()
|
timer:start(1000, 0, function()
|
||||||
-- Delete the autocommand if no response was received
|
-- Delete the autocommand if no response was received
|
||||||
|
Loading…
Reference in New Issue
Block a user