mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Only exit copy mode at the bottom if no selection in progress, from
Benoit Pierre.
This commit is contained in:
		@@ -853,8 +853,12 @@ window_copy_mouse(
 | 
			
		||||
		} else if (m->wheel == MOUSE_WHEEL_DOWN) {
 | 
			
		||||
			for (i = 0; i < 5; i++)
 | 
			
		||||
				window_copy_cursor_down(wp, 1);
 | 
			
		||||
			if (data->oy == 0)
 | 
			
		||||
				goto reset_mode;
 | 
			
		||||
			/*
 | 
			
		||||
			 * We reached the bottom, leave copy mode,
 | 
			
		||||
			 * but only if no selection is in progress.
 | 
			
		||||
			 */
 | 
			
		||||
			if (data->oy == 0 && !s->sel.flag)
 | 
			
		||||
			    goto reset_mode;
 | 
			
		||||
		}
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user