mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										5
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								format.c
									
									
									
									
									
								
							@@ -879,9 +879,8 @@ format_replace(struct format_tree *ft, const char *key, size_t keylen,
 | 
				
			|||||||
		*ptr = '\0';
 | 
							*ptr = '\0';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		found = format_find(ft, copy + 1, modifiers);
 | 
							found = format_find(ft, copy + 1, modifiers);
 | 
				
			||||||
		if (found == NULL) {
 | 
							if (found == NULL)
 | 
				
			||||||
			log_debug("XXX %s", copy + 1);
 | 
								found = format_expand(ft, copy + 1);
 | 
				
			||||||
			found = format_expand(ft, copy + 1);}
 | 
					 | 
				
			||||||
		if (format_choose(ptr + 1, &left, &right) != 0)
 | 
							if (format_choose(ptr + 1, &left, &right) != 0)
 | 
				
			||||||
			goto fail;
 | 
								goto fail;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								tty.c
									
									
									
									
									
								
							@@ -1356,13 +1356,15 @@ tty_margin(struct tty *tty, u_int rleft, u_int rright)
 | 
				
			|||||||
	if (tty->rleft == rleft && tty->rright == rright)
 | 
						if (tty->rleft == rleft && tty->rright == rright)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	tty->rupper = 0;
 | 
						tty_putcode2(tty, TTYC_CSR, tty->rupper, tty->rlower);
 | 
				
			||||||
	tty->rlower = tty->sy - 1;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	tty->rleft = rleft;
 | 
						tty->rleft = rleft;
 | 
				
			||||||
	tty->rright = rright;
 | 
						tty->rright = rright;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	snprintf(s, sizeof s, "\033[r\033[%u;%us", rleft + 1, rright + 1);
 | 
						if (rleft == 0 && rright == tty->sx - 1)
 | 
				
			||||||
 | 
							snprintf(s, sizeof s, "\033[s");
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
							snprintf(s, sizeof s, "\033[%u;%us", rleft + 1, rright + 1);
 | 
				
			||||||
	tty_puts(tty, s);
 | 
						tty_puts(tty, s);
 | 
				
			||||||
	tty->cx = tty->cy = 0;
 | 
						tty->cx = tty->cy = 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user