mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Support command sequences separated by " ; ". Also clean up command printing.
This commit is contained in:
		
							
								
								
									
										11
									
								
								cmd.c
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								cmd.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: cmd.c,v 1.80 2009-01-18 12:09:42 nicm Exp $ */
 | 
			
		||||
/* $Id: cmd.c,v 1.81 2009-01-18 14:40:48 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -234,6 +234,15 @@ cmd_free(struct cmd *cmd)
 | 
			
		||||
	xfree(cmd);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
size_t
 | 
			
		||||
cmd_print(struct cmd *cmd, char *buf, size_t len)
 | 
			
		||||
{
 | 
			
		||||
	if (cmd->entry->print == NULL) {
 | 
			
		||||
		return (xsnprintf(buf, len, "%s", cmd->entry->name));
 | 
			
		||||
	}
 | 
			
		||||
	return (cmd->entry->print(cmd, buf, len));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
cmd_send_string(struct buffer *b, const char *s)
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user