mirror of
				https://github.com/tmux-plugins/tmux-sensible.git
				synced 2025-11-04 00:16:03 +00:00 
			
		
		
		
	Remove old UTF8 options
As the code comments say, these options were removed in tmux 2.2.
This commit is contained in:
		@@ -24,10 +24,6 @@ Tested and working on Linux, OSX and Cygwin.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### Options
 | 
					### Options
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # utf8 is on
 | 
					 | 
				
			||||||
    set -g utf8 on
 | 
					 | 
				
			||||||
    set -g status-utf8 on
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    # address vim mode switching delay (http://superuser.com/a/252717/65504)
 | 
					    # address vim mode switching delay (http://superuser.com/a/252717/65504)
 | 
				
			||||||
    set -s escape-time 0
 | 
					    set -s escape-time 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -67,12 +67,6 @@ key_binding_not_changed() {
 | 
				
			|||||||
main() {
 | 
					main() {
 | 
				
			||||||
	# OPTIONS
 | 
						# OPTIONS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# enable utf8 (option removed in tmux 2.2)
 | 
					 | 
				
			||||||
	tmux set-option -g utf8 on 2>/dev/null
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	# enable utf8 in tmux status-left and status-right (option removed in tmux 2.2)
 | 
					 | 
				
			||||||
	tmux set-option -g status-utf8 on 2>/dev/null
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	# address vim mode switching delay (http://superuser.com/a/252717/65504)
 | 
						# address vim mode switching delay (http://superuser.com/a/252717/65504)
 | 
				
			||||||
	if server_option_value_not_changed "escape-time" "500"; then
 | 
						if server_option_value_not_changed "escape-time" "500"; then
 | 
				
			||||||
		tmux set-option -s escape-time 0
 | 
							tmux set-option -s escape-time 0
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user