mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Minor fix: look for default-path in the options for the specified session first
rather than just the global options. From Brandon Mercer, thanks.
This commit is contained in:
		| @@ -164,7 +164,7 @@ cmd_new_window_exec(struct cmd *self, struct cmd_ctx *ctx) | |||||||
| 	if (cmd == NULL) | 	if (cmd == NULL) | ||||||
| 		cmd = options_get_string(&s->options, "default-command"); | 		cmd = options_get_string(&s->options, "default-command"); | ||||||
| 	if (ctx->cmdclient == NULL || ctx->cmdclient->cwd == NULL) | 	if (ctx->cmdclient == NULL || ctx->cmdclient->cwd == NULL) | ||||||
| 		cwd = options_get_string(&global_options, "default-path"); | 		cwd = options_get_string(&s->options, "default-path"); | ||||||
| 	else | 	else | ||||||
| 		cwd = ctx->cmdclient->cwd; | 		cwd = ctx->cmdclient->cwd; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott