mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Loop over all DA features, don't skip the first.
This commit is contained in:
		@@ -1038,7 +1038,7 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len,
 | 
				
			|||||||
	cp = tmp;
 | 
						cp = tmp;
 | 
				
			||||||
	while ((next = strsep(&cp, ";")) != NULL) {
 | 
						while ((next = strsep(&cp, ";")) != NULL) {
 | 
				
			||||||
		p[n] = strtoul(next, &endptr, 10);
 | 
							p[n] = strtoul(next, &endptr, 10);
 | 
				
			||||||
		if (*endptr != '\0' && *endptr != ';')
 | 
							if (*endptr != '\0')
 | 
				
			||||||
			p[n] = 0;
 | 
								p[n] = 0;
 | 
				
			||||||
		n++;
 | 
							n++;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -1068,7 +1068,7 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len,
 | 
				
			|||||||
		type = TTY_VT520;
 | 
							type = TTY_VT520;
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	for (i = 2; i < n; i++)
 | 
						for (i = 1; i < n; i++)
 | 
				
			||||||
		log_debug("%s: DA feature: %d", c->name, p[i]);
 | 
							log_debug("%s: DA feature: %d", c->name, p[i]);
 | 
				
			||||||
	tty_set_type(tty, type);
 | 
						tty_set_type(tty, type);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user