mirror of
				https://github.com/zsh-users/zsh-autosuggestions.git
				synced 2024-05-11 05:54:57 +00:00 
			
		
		
		
	Fix tests
This commit is contained in:
		@@ -12,7 +12,9 @@ class TerminalSession
 | 
			
		||||
      zsh_bin: ZSH_BIN
 | 
			
		||||
    }.merge(opts)
 | 
			
		||||
 | 
			
		||||
    cmd="PS1=#{opts[:prompt]} TERM=#{opts[:term]} #{ZSH_BIN} -f"
 | 
			
		||||
    @opts = opts
 | 
			
		||||
 | 
			
		||||
    cmd="PS1=\"#{opts[:prompt]}\" TERM=#{opts[:term]} #{ZSH_BIN} -f"
 | 
			
		||||
    tmux_command("new-session -d -x #{opts[:width]} -y #{opts[:height]} '#{cmd}'")
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
@@ -66,6 +68,8 @@ class TerminalSession
 | 
			
		||||
 | 
			
		||||
  private
 | 
			
		||||
 | 
			
		||||
  attr_reader :opts
 | 
			
		||||
 | 
			
		||||
  def tmux_socket_name
 | 
			
		||||
    @tmux_socket_name ||= SecureRandom.hex(6)
 | 
			
		||||
  end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user