mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Allow cmd_mouse_at return arguments to be NULL.
This commit is contained in:
		
							
								
								
									
										2
									
								
								cmd.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								cmd.c
									
									
									
									
									
								
							| @@ -601,7 +601,9 @@ cmd_mouse_at(struct window_pane *wp, struct mouse_event *m, u_int *xp, | |||||||
| 	if (y < wp->yoff || y >= wp->yoff + wp->sy) | 	if (y < wp->yoff || y >= wp->yoff + wp->sy) | ||||||
| 		return (-1); | 		return (-1); | ||||||
|  |  | ||||||
|  | 	if (xp != NULL) | ||||||
| 		*xp = x - wp->xoff; | 		*xp = x - wp->xoff; | ||||||
|  | 	if (yp != NULL) | ||||||
| 		*yp = y - wp->yoff; | 		*yp = y - wp->yoff; | ||||||
| 	return (0); | 	return (0); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 nicm
					nicm