mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Do not add path if it is NULL, duh.
This commit is contained in:
		
							
								
								
									
										3
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								format.c
									
									
									
									
									
								
							@@ -2267,7 +2267,8 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
 | 
			
		||||
	format_add(ft, "pane_width", "%u", wp->sx);
 | 
			
		||||
	format_add(ft, "pane_height", "%u", wp->sy);
 | 
			
		||||
	format_add(ft, "pane_title", "%s", wp->base.title);
 | 
			
		||||
	format_add(ft, "pane_path", "%s", wp->base.path);
 | 
			
		||||
	if (wp->base.path != NULL)
 | 
			
		||||
	    format_add(ft, "pane_path", "%s", wp->base.path);
 | 
			
		||||
	format_add(ft, "pane_id", "%%%u", wp->id);
 | 
			
		||||
	format_add(ft, "pane_active", "%d", wp == w->active);
 | 
			
		||||
	format_add(ft, "pane_input_off", "%d", !!(wp->flags & PANE_INPUTOFF));
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								input.c
									
									
									
									
									
								
							@@ -132,7 +132,6 @@ static void	input_set_state(struct window_pane *,
 | 
			
		||||
static void	input_reset_cell(struct input_ctx *);
 | 
			
		||||
 | 
			
		||||
static void	input_osc_4(struct input_ctx *, const char *);
 | 
			
		||||
static void	input_osc_7(struct input_ctx *, const char *);
 | 
			
		||||
static void	input_osc_10(struct input_ctx *, const char *);
 | 
			
		||||
static void	input_osc_11(struct input_ctx *, const char *);
 | 
			
		||||
static void	input_osc_52(struct input_ctx *, const char *);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user