mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Apply -n when only one pane in the window.
This commit is contained in:
		@@ -80,6 +80,10 @@ cmd_break_pane_exec(struct cmd *self, struct cmdq_item *item)
 | 
				
			|||||||
			free(cause);
 | 
								free(cause);
 | 
				
			||||||
			return (CMD_RETURN_ERROR);
 | 
								return (CMD_RETURN_ERROR);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							if (args_has(args, 'n')) {
 | 
				
			||||||
 | 
								window_set_name(w, args_get(args, 'n'));
 | 
				
			||||||
 | 
								options_set_number(w->options, "automatic-rename", 0);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		server_unlink_window(src_s, wl);
 | 
							server_unlink_window(src_s, wl);
 | 
				
			||||||
		return (CMD_RETURN_NORMAL);
 | 
							return (CMD_RETURN_NORMAL);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user