mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	While here, maximum percentage is 100 not INT_MAX. Oops.
This commit is contained in:
		@@ -97,7 +97,7 @@ cmd_join_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
				
			|||||||
			return (-1);
 | 
								return (-1);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else if (args_has(args, 'p')) {
 | 
						} else if (args_has(args, 'p')) {
 | 
				
			||||||
		percentage = args_strtonum(args, 'p', 0, INT_MAX, &cause);
 | 
							percentage = args_strtonum(args, 'p', 0, 100, &cause);
 | 
				
			||||||
		if (cause != NULL) {
 | 
							if (cause != NULL) {
 | 
				
			||||||
			ctx->error(ctx, "percentage %s", cause);
 | 
								ctx->error(ctx, "percentage %s", cause);
 | 
				
			||||||
			xfree(cause);
 | 
								xfree(cause);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user