mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Use tty_term_flag not _has for flags, also fix a typo (position not
permission).
This commit is contained in:
		
							
								
								
									
										4
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tty.c
									
									
									
									
									
								
							@@ -629,7 +629,7 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int ox, u_int oy)
 | 
				
			|||||||
		sx = tty->sx;
 | 
							sx = tty->sx;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/*
 | 
						/*
 | 
				
			||||||
	 * Don't move the cursor to the start permission if it will wrap there
 | 
						 * Don't move the cursor to the start position if it will wrap there
 | 
				
			||||||
	 * itself.
 | 
						 * itself.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	gl = NULL;
 | 
						gl = NULL;
 | 
				
			||||||
@@ -1407,7 +1407,7 @@ tty_colours(struct tty *tty, const struct grid_cell *gc)
 | 
				
			|||||||
		 *
 | 
							 *
 | 
				
			||||||
		 * Otherwise, try to set the default colour only as needed.
 | 
							 * Otherwise, try to set the default colour only as needed.
 | 
				
			||||||
		 */
 | 
							 */
 | 
				
			||||||
		have_ax = tty_term_has(tty->term, TTYC_AX);
 | 
							have_ax = tty_term_flag(tty->term, TTYC_AX);
 | 
				
			||||||
		if (!have_ax && tty_term_has(tty->term, TTYC_OP))
 | 
							if (!have_ax && tty_term_has(tty->term, TTYC_OP))
 | 
				
			||||||
			tty_reset(tty);
 | 
								tty_reset(tty);
 | 
				
			||||||
		else {
 | 
							else {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user