mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Actually incrementing the reference count would be nice.
This commit is contained in:
		
							
								
								
									
										3
									
								
								TODO
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								TODO
									
									
									
									
									
								
							@@ -59,7 +59,6 @@
 | 
				
			|||||||
- audit copy/scroll and other modes for problems with very small windows
 | 
					- audit copy/scroll and other modes for problems with very small windows
 | 
				
			||||||
- screen_draw_* moved out/renamed (accept TTY_*?)
 | 
					- screen_draw_* moved out/renamed (accept TTY_*?)
 | 
				
			||||||
- get rid of stderr/stdout hacks in log.c
 | 
					- get rid of stderr/stdout hacks in log.c
 | 
				
			||||||
- chmod +x socket when any client is attached
 | 
					 | 
				
			||||||
- split clients into three RB trees by fd: attached/unattached/dead?
 | 
					- split clients into three RB trees by fd: attached/unattached/dead?
 | 
				
			||||||
  or tailqs? what would be fastest per-char?
 | 
					  or tailqs? what would be fastest per-char?
 | 
				
			||||||
- multiple paste buffers
 | 
					- multiple paste buffers
 | 
				
			||||||
@@ -69,3 +68,5 @@
 | 
				
			|||||||
- anything which uses cmd_{send,recv}_string will break if the string is
 | 
					- anything which uses cmd_{send,recv}_string will break if the string is
 | 
				
			||||||
  split. string length should be part of the command size
 | 
					  split. string length should be part of the command size
 | 
				
			||||||
- quick intro section (tmux new/attach/detach) etc
 | 
					- quick intro section (tmux new/attach/detach) etc
 | 
				
			||||||
 | 
					- chmod +x socket when any client is attached (upd in lost/accept)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								tty.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: tty.c,v 1.15 2007-12-06 21:57:57 nicm Exp $ */
 | 
					/* $Id: tty.c,v 1.16 2007-12-10 07:58:00 nicm Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -167,8 +167,10 @@ tty_find_term(char *name, int fd, char **cause)
 | 
				
			|||||||
	int		 error;
 | 
						int		 error;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	TAILQ_FOREACH(term, &tty_terms, entry) {
 | 
						TAILQ_FOREACH(term, &tty_terms, entry) {
 | 
				
			||||||
		if (strcmp(term->name, name) == 0)
 | 
							if (strcmp(term->name, name) == 0) {
 | 
				
			||||||
 | 
								term->references++;
 | 
				
			||||||
			return (term);
 | 
								return (term);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	term = xmalloc(sizeof *term);
 | 
						term = xmalloc(sizeof *term);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user