mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Use the right client when working out where to save or load the buffer,
reported by kn@.
This commit is contained in:
		@@ -93,7 +93,7 @@ cmd_load_buffer_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
		return (CMD_RETURN_WAIT);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	file = server_client_get_path(c, path);
 | 
			
		||||
	file = server_client_get_path(item->client, path);
 | 
			
		||||
	free(path);
 | 
			
		||||
 | 
			
		||||
	f = fopen(file, "rb");
 | 
			
		||||
 
 | 
			
		||||
@@ -105,7 +105,7 @@ cmd_save_buffer_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
	if (args_has(self->args, 'a'))
 | 
			
		||||
		flags = "ab";
 | 
			
		||||
 | 
			
		||||
	file = server_client_get_path(c, path);
 | 
			
		||||
	file = server_client_get_path(item->client, path);
 | 
			
		||||
	free(path);
 | 
			
		||||
 | 
			
		||||
	f = fopen(file, flags);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user