mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Some style nits and dead assignments.
This commit is contained in:
		@@ -56,7 +56,7 @@ cmd_show_environment_escape(struct environ_entry *envent)
 | 
			
		||||
	}
 | 
			
		||||
	*out = '\0';
 | 
			
		||||
 | 
			
		||||
	return ret;
 | 
			
		||||
	return (ret);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
 
 | 
			
		||||
@@ -58,12 +58,10 @@ cmd_swap_pane_exec(struct cmd *self, struct cmd_q *cmdq)
 | 
			
		||||
			src_wp = TAILQ_NEXT(dst_wp, entry);
 | 
			
		||||
			if (src_wp == NULL)
 | 
			
		||||
				src_wp = TAILQ_FIRST(&dst_w->panes);
 | 
			
		||||
			src_wl = dst_wl;
 | 
			
		||||
		} else if (args_has(self->args, 'U')) {
 | 
			
		||||
			src_wp = TAILQ_PREV(dst_wp, window_panes, entry);
 | 
			
		||||
			if (src_wp == NULL)
 | 
			
		||||
				src_wp = TAILQ_LAST(&dst_w->panes, window_panes);
 | 
			
		||||
			src_wl = dst_wl;
 | 
			
		||||
		} else {
 | 
			
		||||
			src_wl = cmd_find_pane_marked(cmdq, NULL, NULL,
 | 
			
		||||
			    &src_wp);
 | 
			
		||||
 
 | 
			
		||||
@@ -551,13 +551,6 @@ server_client_handle_key(struct client *c, int key)
 | 
			
		||||
	w = s->curw->window;
 | 
			
		||||
	wp = w->active;
 | 
			
		||||
 | 
			
		||||
	/* No session, do nothing. */
 | 
			
		||||
	if (c->session == NULL)
 | 
			
		||||
		return;
 | 
			
		||||
	s = c->session;
 | 
			
		||||
	w = c->session->curw->window;
 | 
			
		||||
	wp = w->active;
 | 
			
		||||
 | 
			
		||||
	/* Update the activity timer. */
 | 
			
		||||
	if (gettimeofday(&c->activity_time, NULL) != 0)
 | 
			
		||||
		fatal("gettimeofday failed");
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								tmux.c
									
									
									
									
									
								
							@@ -213,7 +213,7 @@ find_home(void)
 | 
			
		||||
			home = NULL;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return home;
 | 
			
		||||
	return (home);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
 
 | 
			
		||||
@@ -120,6 +120,8 @@ xterm_keys_match(const char *template, const char *buf, size_t len,
 | 
			
		||||
	size_t	pos;
 | 
			
		||||
	int	retval;
 | 
			
		||||
 | 
			
		||||
	*modifiers = 0;
 | 
			
		||||
 | 
			
		||||
	if (len == 0)
 | 
			
		||||
		return (0);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user