mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Lose intermediate handling (unused). Change argument parsing to work properly over multiple buffers by saving a copy of the argument (we can't just save off/len since the buffer may vanish at any point).
This commit is contained in:
		
							
								
								
									
										10
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								window.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: window.c,v 1.13 2007-09-29 09:15:49 nicm Exp $ */
 | 
			
		||||
/* $Id: window.c,v 1.14 2007-09-29 14:25:49 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -314,9 +314,17 @@ window_input(struct window *w, struct buffer *b, size_t size)
 | 
			
		||||
void
 | 
			
		||||
window_output(struct window *w, struct buffer *b)
 | 
			
		||||
{
 | 
			
		||||
	FILE	*f;
 | 
			
		||||
 | 
			
		||||
	if (BUFFER_USED(w->in) == 0)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	if (debug_level > 2) {
 | 
			
		||||
		f = fopen("tmux-in.log", "a+");
 | 
			
		||||
		fwrite(BUFFER_OUT(w->in), BUFFER_USED(w->in), 1, f);
 | 
			
		||||
		fclose(f);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	input_parse(&w->ictx, BUFFER_OUT(w->in), BUFFER_USED(w->in), b);
 | 
			
		||||
	buffer_remove(w->in, BUFFER_USED(w->in));
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user