mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	If -s to swap-pane is not given, use the current pane.
This commit is contained in:
		@@ -75,8 +75,12 @@ cmd_swap_pane_exec(struct cmd *self, struct cmd_q *cmdq)
 | 
			
		||||
			src_wp = TAILQ_PREV(dst_wp, window_panes, entry);
 | 
			
		||||
			if (src_wp == NULL)
 | 
			
		||||
				src_wp = TAILQ_LAST(&dst_w->panes, window_panes);
 | 
			
		||||
		} else
 | 
			
		||||
			return (CMD_RETURN_NORMAL);
 | 
			
		||||
		} else {
 | 
			
		||||
			src_wl = cmd_find_pane(cmdq, NULL, NULL, &src_wp);
 | 
			
		||||
			if (src_wl == NULL)
 | 
			
		||||
				return (CMD_RETURN_ERROR);
 | 
			
		||||
			src_w = src_wl->window;
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		src_wl = cmd_find_pane(cmdq, args_get(args, 's'), NULL, &src_wp);
 | 
			
		||||
		if (src_wl == NULL)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user