mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Sync OpenBSD patchset 991:
Extend history that can be captured to INT_MIN rather than SHRT_MIN. From Chris Johnsen.
This commit is contained in:
		@@ -59,7 +59,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
				
			|||||||
	buf = NULL;
 | 
						buf = NULL;
 | 
				
			||||||
	len = 0;
 | 
						len = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	n = args_strtonum(args, 'S', SHRT_MIN, SHRT_MAX, &cause);
 | 
						n = args_strtonum(args, 'S', INT_MIN, SHRT_MAX, &cause);
 | 
				
			||||||
	if (cause != NULL) {
 | 
						if (cause != NULL) {
 | 
				
			||||||
		top = gd->hsize;
 | 
							top = gd->hsize;
 | 
				
			||||||
		xfree(cause);
 | 
							xfree(cause);
 | 
				
			||||||
@@ -70,7 +70,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
				
			|||||||
	if (top > gd->hsize + gd->sy - 1)
 | 
						if (top > gd->hsize + gd->sy - 1)
 | 
				
			||||||
		top = gd->hsize + gd->sy - 1;
 | 
							top = gd->hsize + gd->sy - 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	n = args_strtonum(args, 'E', SHRT_MIN, SHRT_MAX, &cause);
 | 
						n = args_strtonum(args, 'E', INT_MIN, SHRT_MAX, &cause);
 | 
				
			||||||
	if (cause != NULL) {
 | 
						if (cause != NULL) {
 | 
				
			||||||
		bottom = gd->hsize + gd->sy - 1;
 | 
							bottom = gd->hsize + gd->sy - 1;
 | 
				
			||||||
		xfree(cause);
 | 
							xfree(cause);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user