mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	The pane's style should be initialized to default before parsing the
argument.
This commit is contained in:
		@@ -19,6 +19,7 @@
 | 
			
		||||
#include <sys/types.h>
 | 
			
		||||
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
 | 
			
		||||
#include "tmux.h"
 | 
			
		||||
 | 
			
		||||
@@ -143,6 +144,8 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
	if (args_has(self->args, 'P') || args_has(self->args, 'g')) {
 | 
			
		||||
		if (args_has(args, 'P')) {
 | 
			
		||||
			style = args_get(args, 'P');
 | 
			
		||||
			memcpy(&wp->colgc, &grid_default_cell,
 | 
			
		||||
			    sizeof wp->colgc);
 | 
			
		||||
			if (style_parse(&grid_default_cell, &wp->colgc,
 | 
			
		||||
			    style) == -1) {
 | 
			
		||||
				cmdq_error(item, "bad style: %s", style);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user