mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Remove stray spaces after function names.
This commit is contained in:
		@@ -211,7 +211,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	repeat = 0;
 | 
						repeat = 0;
 | 
				
			||||||
	tablewidth = keywidth = 0;
 | 
						tablewidth = keywidth = 0;
 | 
				
			||||||
	table = key_bindings_first_table ();
 | 
						table = key_bindings_first_table();
 | 
				
			||||||
	while (table != NULL) {
 | 
						while (table != NULL) {
 | 
				
			||||||
		if (tablename != NULL && strcmp(table->name, tablename) != 0) {
 | 
							if (tablename != NULL && strcmp(table->name, tablename) != 0) {
 | 
				
			||||||
			table = key_bindings_next_table(table);
 | 
								table = key_bindings_next_table(table);
 | 
				
			||||||
@@ -243,8 +243,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	tmpsize = 256;
 | 
						tmpsize = 256;
 | 
				
			||||||
	tmp = xmalloc(tmpsize);
 | 
						tmp = xmalloc(tmpsize);
 | 
				
			||||||
 | 
						table = key_bindings_first_table();
 | 
				
			||||||
	table = key_bindings_first_table ();
 | 
					 | 
				
			||||||
	while (table != NULL) {
 | 
						while (table != NULL) {
 | 
				
			||||||
		if (tablename != NULL && strcmp(table->name, tablename) != 0) {
 | 
							if (tablename != NULL && strcmp(table->name, tablename) != 0) {
 | 
				
			||||||
			table = key_bindings_next_table(table);
 | 
								table = key_bindings_next_table(table);
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										7
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								format.c
									
									
									
									
									
								
							@@ -4078,8 +4078,7 @@ format_replace(struct format_expand_state *es, const char *key, size_t keylen,
 | 
				
			|||||||
			case 's':
 | 
								case 's':
 | 
				
			||||||
				if (fm->argc < 2)
 | 
									if (fm->argc < 2)
 | 
				
			||||||
					break;
 | 
										break;
 | 
				
			||||||
				sub = xreallocarray (sub, nsub + 1,
 | 
									sub = xreallocarray(sub, nsub + 1, sizeof *sub);
 | 
				
			||||||
				    sizeof *sub);
 | 
					 | 
				
			||||||
				sub[nsub++] = fm;
 | 
									sub[nsub++] = fm;
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
			case '=':
 | 
								case '=':
 | 
				
			||||||
@@ -4188,7 +4187,7 @@ format_replace(struct format_expand_state *es, const char *key, size_t keylen,
 | 
				
			|||||||
			value = xstrdup("");
 | 
								value = xstrdup("");
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			xasprintf(&value, "%c", c);
 | 
								xasprintf(&value, "%c", c);
 | 
				
			||||||
		free (new);
 | 
							free(new);
 | 
				
			||||||
		goto done;
 | 
							goto done;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -4752,7 +4751,7 @@ format_defaults(struct format_tree *ft, struct client *c, struct session *s,
 | 
				
			|||||||
	if (wp != NULL)
 | 
						if (wp != NULL)
 | 
				
			||||||
		format_defaults_pane(ft, wp);
 | 
							format_defaults_pane(ft, wp);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pb = paste_get_top (NULL);
 | 
						pb = paste_get_top(NULL);
 | 
				
			||||||
	if (pb != NULL)
 | 
						if (pb != NULL)
 | 
				
			||||||
		format_defaults_paste_buffer(ft, pb);
 | 
							format_defaults_paste_buffer(ft, pb);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -334,7 +334,7 @@ input_key_cmp(struct input_key_entry *ike1, struct input_key_entry *ike2)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* Look for key in tree. */
 | 
					/* Look for key in tree. */
 | 
				
			||||||
static struct input_key_entry *
 | 
					static struct input_key_entry *
 | 
				
			||||||
input_key_get (key_code key)
 | 
					input_key_get(key_code key)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct input_key_entry	entry = { .key = key };
 | 
						struct input_key_entry	entry = { .key = key };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -922,7 +922,7 @@ mode_tree_menu_callback(__unused struct menu *menu, __unused u_int idx,
 | 
				
			|||||||
	if (mti->itemdata != mtm->itemdata)
 | 
						if (mti->itemdata != mtm->itemdata)
 | 
				
			||||||
		goto out;
 | 
							goto out;
 | 
				
			||||||
	mtd->current = mtm->line;
 | 
						mtd->current = mtm->line;
 | 
				
			||||||
	mtd->menucb (mtd->modedata, mtm->c, key);
 | 
						mtd->menucb(mtd->modedata, mtm->c, key);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
out:
 | 
					out:
 | 
				
			||||||
	mode_tree_remove_ref(mtd);
 | 
						mode_tree_remove_ref(mtd);
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								names.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								names.c
									
									
									
									
									
								
							@@ -146,7 +146,7 @@ parse_window_name(const char *in)
 | 
				
			|||||||
	name = copy = xstrdup(in);
 | 
						name = copy = xstrdup(in);
 | 
				
			||||||
	if (*name == '"')
 | 
						if (*name == '"')
 | 
				
			||||||
		name++;
 | 
							name++;
 | 
				
			||||||
	name[strcspn (name, "\"")] = '\0';
 | 
						name[strcspn(name, "\"")] = '\0';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (strncmp(name, "exec ", (sizeof "exec ") - 1) == 0)
 | 
						if (strncmp(name, "exec ", (sizeof "exec ") - 1) == 0)
 | 
				
			||||||
		name = name + (sizeof "exec ") - 1;
 | 
							name = name + (sizeof "exec ") - 1;
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								screen.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								screen.c
									
									
									
									
									
								
							@@ -698,6 +698,6 @@ screen_mode_to_string(int mode)
 | 
				
			|||||||
		strlcat(tmp, "CRLF,", sizeof tmp);
 | 
							strlcat(tmp, "CRLF,", sizeof tmp);
 | 
				
			||||||
	if (mode & MODE_KEXTENDED)
 | 
						if (mode & MODE_KEXTENDED)
 | 
				
			||||||
		strlcat(tmp, "KEXTENDED,", sizeof tmp);
 | 
							strlcat(tmp, "KEXTENDED,", sizeof tmp);
 | 
				
			||||||
	tmp[strlen (tmp) - 1] = '\0';
 | 
						tmp[strlen(tmp) - 1] = '\0';
 | 
				
			||||||
	return (tmp);
 | 
						return (tmp);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2378,7 +2378,7 @@ server_client_set_flags(struct client *c, const char *flags)
 | 
				
			|||||||
	uint64_t flag;
 | 
						uint64_t flag;
 | 
				
			||||||
	int	 not;
 | 
						int	 not;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	s = copy = xstrdup (flags);
 | 
						s = copy = xstrdup(flags);
 | 
				
			||||||
	while ((next = strsep(&s, ",")) != NULL) {
 | 
						while ((next = strsep(&s, ",")) != NULL) {
 | 
				
			||||||
		not = (*next == '!');
 | 
							not = (*next == '!');
 | 
				
			||||||
		if (not)
 | 
							if (not)
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								status.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								status.c
									
									
									
									
									
								
							@@ -1413,7 +1413,7 @@ process_key:
 | 
				
			|||||||
			break;
 | 
								break;
 | 
				
			||||||
		if (c->prompt_buffer[0].size == 0) {
 | 
							if (c->prompt_buffer[0].size == 0) {
 | 
				
			||||||
			prefix = '=';
 | 
								prefix = '=';
 | 
				
			||||||
			free (c->prompt_buffer);
 | 
								free(c->prompt_buffer);
 | 
				
			||||||
			c->prompt_buffer = utf8_fromcstr(c->prompt_last);
 | 
								c->prompt_buffer = utf8_fromcstr(c->prompt_last);
 | 
				
			||||||
			c->prompt_index = utf8_strlen(c->prompt_buffer);
 | 
								c->prompt_index = utf8_strlen(c->prompt_buffer);
 | 
				
			||||||
		} else
 | 
							} else
 | 
				
			||||||
@@ -1424,7 +1424,7 @@ process_key:
 | 
				
			|||||||
			break;
 | 
								break;
 | 
				
			||||||
		if (c->prompt_buffer[0].size == 0) {
 | 
							if (c->prompt_buffer[0].size == 0) {
 | 
				
			||||||
			prefix = '=';
 | 
								prefix = '=';
 | 
				
			||||||
			free (c->prompt_buffer);
 | 
								free(c->prompt_buffer);
 | 
				
			||||||
			c->prompt_buffer = utf8_fromcstr(c->prompt_last);
 | 
								c->prompt_buffer = utf8_fromcstr(c->prompt_last);
 | 
				
			||||||
			c->prompt_index = utf8_strlen(c->prompt_buffer);
 | 
								c->prompt_index = utf8_strlen(c->prompt_buffer);
 | 
				
			||||||
		} else
 | 
							} else
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2226,7 +2226,7 @@ window_copy_cmd_search_backward_incremental(struct window_copy_cmd_state *cs)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	data->timeout = 0;
 | 
						data->timeout = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	log_debug ("%s: %s", __func__, argument);
 | 
						log_debug("%s: %s", __func__, argument);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	prefix = *argument++;
 | 
						prefix = *argument++;
 | 
				
			||||||
	if (data->searchx == -1 || data->searchy == -1) {
 | 
						if (data->searchx == -1 || data->searchy == -1) {
 | 
				
			||||||
@@ -2281,7 +2281,7 @@ window_copy_cmd_search_forward_incremental(struct window_copy_cmd_state *cs)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	data->timeout = 0;
 | 
						data->timeout = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	log_debug ("%s: %s", __func__, argument);
 | 
						log_debug("%s: %s", __func__, argument);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	prefix = *argument++;
 | 
						prefix = *argument++;
 | 
				
			||||||
	if (data->searchx == -1 || data->searchy == -1) {
 | 
						if (data->searchx == -1 || data->searchy == -1) {
 | 
				
			||||||
@@ -2859,7 +2859,7 @@ window_copy_command(struct window_mode_entry *wme, struct client *c,
 | 
				
			|||||||
			    args->argc - 1 > window_copy_cmd_table[i].maxargs)
 | 
								    args->argc - 1 > window_copy_cmd_table[i].maxargs)
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
			clear = window_copy_cmd_table[i].clear;
 | 
								clear = window_copy_cmd_table[i].clear;
 | 
				
			||||||
			action = window_copy_cmd_table[i].f (&cs);
 | 
								action = window_copy_cmd_table[i].f(&cs);
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user