mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Start of improved buffer code. Only set-buffer/show-buffer commands so far.
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: session.c,v 1.38 2008-06-18 22:21:51 nicm Exp $ */
 | 
			
		||||
/* $Id: session.c,v 1.39 2008-06-20 08:36:20 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -120,6 +120,7 @@ session_create(const char *name, const char *cmd, u_int sx, u_int sy)
 | 
			
		||||
	s->curw = s->lastw = NULL;
 | 
			
		||||
	RB_INIT(&s->windows);
 | 
			
		||||
	TAILQ_INIT(&s->alerts);
 | 
			
		||||
	paste_init_stack(&s->buffers);
 | 
			
		||||
	options_init(&s->options, &global_options);
 | 
			
		||||
 | 
			
		||||
	s->sx = sx;
 | 
			
		||||
@@ -165,6 +166,7 @@ session_destroy(struct session *s)
 | 
			
		||||
 | 
			
		||||
	session_alert_cancel(s, NULL);
 | 
			
		||||
	options_free(&s->options);
 | 
			
		||||
	paste_free_stack(&s->buffers);
 | 
			
		||||
 | 
			
		||||
	while (!RB_EMPTY(&s->windows))
 | 
			
		||||
		winlink_remove(&s->windows, RB_ROOT(&s->windows));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user