mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Sync OpenBSD patchset 1110:
Only enter copy mode on scroll up, from Ailin Nemui.
This commit is contained in:
		@@ -222,7 +222,8 @@ input_mouse(struct window_pane *wp, struct mouse_event *m)
 | 
				
			|||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (options_get_number(&wp->window->options, "mode-mouse") == 1) {
 | 
						if ((m->b & 3) != 1 &&
 | 
				
			||||||
 | 
						    options_get_number(&wp->window->options, "mode-mouse") == 1) {
 | 
				
			||||||
		if (window_pane_set_mode(wp, &window_copy_mode) == 0) {
 | 
							if (window_pane_set_mode(wp, &window_copy_mode) == 0) {
 | 
				
			||||||
			window_copy_init_from_pane(wp);
 | 
								window_copy_init_from_pane(wp);
 | 
				
			||||||
			if (wp->mode->mouse != NULL)
 | 
								if (wp->mode->mouse != NULL)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user