mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use -t for move-window with -r rather than dying. Reported by Ben
Boeckel and Thomas Adam.
This commit is contained in:
		@@ -47,11 +47,10 @@ cmd_move_window_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
				
			|||||||
	char		*cause;
 | 
						char		*cause;
 | 
				
			||||||
	int		 idx, kflag, dflag;
 | 
						int		 idx, kflag, dflag;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((s = ctx->curclient->session) == NULL)
 | 
						if (args_has(args, 'r')) {
 | 
				
			||||||
 | 
							if ((s = cmd_find_session(ctx, args_get(args, 't'), 0)) == NULL)
 | 
				
			||||||
			return (-1);
 | 
								return (-1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (args_has(args, 'r'))
 | 
					 | 
				
			||||||
	{
 | 
					 | 
				
			||||||
		session_renumber_windows(s);
 | 
							session_renumber_windows(s);
 | 
				
			||||||
		recalculate_sizes();
 | 
							recalculate_sizes();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user