mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add a -v flag to source-file to show the commands and line numbers.
This commit is contained in:
		@@ -38,8 +38,8 @@ const struct cmd_entry cmd_source_file_entry = {
 | 
			
		||||
	.name = "source-file",
 | 
			
		||||
	.alias = "source",
 | 
			
		||||
 | 
			
		||||
	.args = { "nq", 1, -1 },
 | 
			
		||||
	.usage = "[-nq] path ...",
 | 
			
		||||
	.args = { "nqv", 1, -1 },
 | 
			
		||||
	.usage = "[-nqv] path ...",
 | 
			
		||||
 | 
			
		||||
	.flags = 0,
 | 
			
		||||
	.exec = cmd_source_file_exec
 | 
			
		||||
@@ -63,6 +63,8 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
		flags |= CMD_PARSE_QUIET;
 | 
			
		||||
	if (args_has(args, 'n'))
 | 
			
		||||
		flags |= CMD_PARSE_PARSEONLY;
 | 
			
		||||
	if (args_has(args, 'v'))
 | 
			
		||||
		flags |= CMD_PARSE_VERBOSE;
 | 
			
		||||
	utf8_stravis(&cwd, server_client_get_cwd(c, NULL), VIS_GLOB);
 | 
			
		||||
 | 
			
		||||
	retval = CMD_RETURN_NORMAL;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user