mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Fix line endings.
This commit is contained in:
		
							
								
								
									
										14
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								tty.c
									
									
									
									
									
								
							@@ -59,14 +59,14 @@ void	tty_default_colours(struct grid_cell *, const struct window_pane *);
 | 
			
		||||
#define tty_pane_full_width(tty, ctx) \
 | 
			
		||||
	((ctx)->xoff == 0 && screen_size_x((ctx)->wp->screen) >= (tty)->sx)
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
int
 | 
			
		||||
tty_init(struct tty *tty, struct client *c, int fd, char *term)
 | 
			
		||||
{
 | 
			
		||||
	char	*path;
 | 
			
		||||
 | 
			
		||||
	if (!isatty(fd))
 | 
			
		||||
		return (-1);
 | 
			
		||||
 | 
			
		||||
	if (!isatty(fd))
 | 
			
		||||
		return (-1);
 | 
			
		||||
 | 
			
		||||
	memset(tty, 0, sizeof *tty);
 | 
			
		||||
	tty->log_fd = -1;
 | 
			
		||||
 | 
			
		||||
@@ -78,15 +78,15 @@ tty_init(struct tty *tty, struct client *c, int fd, char *term)
 | 
			
		||||
	tty->client = c;
 | 
			
		||||
 | 
			
		||||
	if ((path = ttyname(fd)) == NULL)
 | 
			
		||||
		return (-1);
 | 
			
		||||
		return (-1);
 | 
			
		||||
	tty->path = xstrdup(path);
 | 
			
		||||
	tty->cstyle = 0;
 | 
			
		||||
	tty->ccolour = xstrdup("");
 | 
			
		||||
 | 
			
		||||
	tty->flags = 0;
 | 
			
		||||
	tty->term_flags = 0;
 | 
			
		||||
 | 
			
		||||
	return (0);
 | 
			
		||||
 | 
			
		||||
	return (0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user