mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	fix(defaults): background detection in tmux (#26557)
Wrap the query with passthrough sequence
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user