mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Do not allow cursor colours to be set beginning with ? as that will
report the colour, from Hayaki Saito.
This commit is contained in:
		
							
								
								
									
										5
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								input.c
									
									
									
									
									
								
							@@ -1565,10 +1565,11 @@ input_exit_osc(struct input_ctx *ictx)
 | 
			
		||||
		server_status_window(ictx->wp->window);
 | 
			
		||||
		break;
 | 
			
		||||
	case 12:
 | 
			
		||||
		screen_set_cursor_colour(ictx->ctx.s, p);
 | 
			
		||||
		if (*p != '?') /* ? is colour request */
 | 
			
		||||
			screen_set_cursor_colour(ictx->ctx.s, p);
 | 
			
		||||
		break;
 | 
			
		||||
	case 112:
 | 
			
		||||
		if (*p == '\0') /* No arguments allowed. */
 | 
			
		||||
		if (*p == '\0') /* no arguments allowed */
 | 
			
		||||
			screen_set_cursor_colour(ictx->ctx.s, "");
 | 
			
		||||
		break;
 | 
			
		||||
	default:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user