mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										14
									
								
								attributes.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								attributes.c
									
									
									
									
									
								
							| @@ -32,13 +32,13 @@ attributes_tostring(u_char attr) | |||||||
| 		return ("none"); | 		return ("none"); | ||||||
|  |  | ||||||
| 	len = xsnprintf(buf, sizeof buf, "%s%s%s%s%s%s%s", | 	len = xsnprintf(buf, sizeof buf, "%s%s%s%s%s%s%s", | ||||||
| 		attr & GRID_ATTR_BRIGHT ? "bright," : "", | 	    (attr & GRID_ATTR_BRIGHT) ? "bright," : "", | ||||||
| 		attr & GRID_ATTR_DIM ? "dim," : "", | 	    (attr & GRID_ATTR_DIM) ? "dim," : "", | ||||||
| 		attr & GRID_ATTR_UNDERSCORE ? "underscore," : "", | 	    (attr & GRID_ATTR_UNDERSCORE) ? "underscore," : "", | ||||||
| 		attr & GRID_ATTR_BLINK ? "blink," : "", | 	    (attr & GRID_ATTR_BLINK)? "blink," : "", | ||||||
| 		attr & GRID_ATTR_REVERSE ? "reverse," : "", | 	    (attr & GRID_ATTR_REVERSE) ? "reverse," : "", | ||||||
| 		attr & GRID_ATTR_HIDDEN ? "hidden," : "", | 	    (attr & GRID_ATTR_HIDDEN) ? "hidden," : "", | ||||||
| 		attr & GRID_ATTR_ITALICS ? "italics," : ""); | 	    (attr & GRID_ATTR_ITALICS) ? "italics," : ""); | ||||||
| 	if (len > 0) | 	if (len > 0) | ||||||
| 		buf[len - 1] = '\0'; | 		buf[len - 1] = '\0'; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -131,14 +131,11 @@ cmd_run_shell_callback(struct job *job) | |||||||
| 	char				*cmd = cdata->cmd, *msg, *line; | 	char				*cmd = cdata->cmd, *msg, *line; | ||||||
| 	size_t				 size; | 	size_t				 size; | ||||||
| 	int				 retcode; | 	int				 retcode; | ||||||
| 	u_int				 lines; |  | ||||||
|  |  | ||||||
| 	lines = 0; |  | ||||||
| 	do { | 	do { | ||||||
| 		if ((line = evbuffer_readline(job->event->input)) != NULL) { | 		if ((line = evbuffer_readline(job->event->input)) != NULL) { | ||||||
| 			cmd_run_shell_print(job, line); | 			cmd_run_shell_print(job, line); | ||||||
| 			free(line); | 			free(line); | ||||||
| 			lines++; |  | ||||||
| 		} | 		} | ||||||
| 	} while (line != NULL); | 	} while (line != NULL); | ||||||
|  |  | ||||||
| @@ -149,7 +146,6 @@ cmd_run_shell_callback(struct job *job) | |||||||
| 		line[size] = '\0'; | 		line[size] = '\0'; | ||||||
|  |  | ||||||
| 		cmd_run_shell_print(job, line); | 		cmd_run_shell_print(job, line); | ||||||
| 		lines++; |  | ||||||
|  |  | ||||||
| 		free(line); | 		free(line); | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -72,7 +72,7 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) | |||||||
| 	struct cmd_find_state		*fs = &item->state.tflag; | 	struct cmd_find_state		*fs = &item->state.tflag; | ||||||
| 	struct session			*s = fs->s; | 	struct session			*s = fs->s; | ||||||
| 	struct winlink			*wl = fs->wl; | 	struct winlink			*wl = fs->wl; | ||||||
| 	struct window			*w = wl->window; | 	struct window			*w; | ||||||
| 	struct client			*c; | 	struct client			*c; | ||||||
| 	enum options_table_scope	 scope; | 	enum options_table_scope	 scope; | ||||||
| 	struct options			*oo; | 	struct options			*oo; | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								tmux.c
									
									
									
									
									
								
							| @@ -80,7 +80,7 @@ getshell(void) | |||||||
| static int | static int | ||||||
| checkshell(const char *shell) | checkshell(const char *shell) | ||||||
| { | { | ||||||
| 	if (shell == NULL || *shell == '\0' || *shell != '/') | 	if (shell == NULL || *shell != '/') | ||||||
| 		return (0); | 		return (0); | ||||||
| 	if (areshell(shell)) | 	if (areshell(shell)) | ||||||
| 		return (0); | 		return (0); | ||||||
|   | |||||||
| @@ -910,7 +910,7 @@ window_choose_write_line(struct window_pane *wp, struct screen_write_ctx *ctx, | |||||||
| 		     * expanded or not. | 		     * expanded or not. | ||||||
| 		     */ | 		     */ | ||||||
| 		    (item->wcd->type & TREE_SESSION) ? | 		    (item->wcd->type & TREE_SESSION) ? | ||||||
| 		    (item->state & TREE_EXPANDED ? "-" : "+") : "", item->name); | 		    ((item->state & TREE_EXPANDED) ? "-" : "+") : "", item->name); | ||||||
| 	} | 	} | ||||||
| 	while (s->cx < screen_size_x(s) - 1) | 	while (s->cx < screen_size_x(s) - 1) | ||||||
| 		screen_write_putc(ctx, &gc, ' '); | 		screen_write_putc(ctx, &gc, ' '); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Thomas Adam
					Thomas Adam