mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Remove some code not needed on OpenBSD.
This commit is contained in:
		@@ -534,18 +534,8 @@ server_client_check_resize(struct window_pane *wp)
 | 
				
			|||||||
	ws.ws_col = wp->sx;
 | 
						ws.ws_col = wp->sx;
 | 
				
			||||||
	ws.ws_row = wp->sy;
 | 
						ws.ws_row = wp->sy;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1) {
 | 
						if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
 | 
				
			||||||
#ifdef __sun
 | 
					 | 
				
			||||||
		/*
 | 
					 | 
				
			||||||
		 * Some versions of Solaris apparently can return an error when
 | 
					 | 
				
			||||||
		 * resizing; don't know why this happens, can't reproduce on
 | 
					 | 
				
			||||||
		 * other platforms and ignoring it doesn't seem to cause any
 | 
					 | 
				
			||||||
		 * issues.
 | 
					 | 
				
			||||||
		 */
 | 
					 | 
				
			||||||
		if (errno != EINVAL)
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
		fatal("ioctl failed");
 | 
							fatal("ioctl failed");
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wp->flags &= ~PANE_RESIZE;
 | 
						wp->flags &= ~PANE_RESIZE;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user