mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Start a new selection if outside the existing selection after a word has
been selected. From Anindya Mukherjee.
This commit is contained in:
		@@ -4122,7 +4122,7 @@ window_copy_start_drag(struct client *c, struct mouse_event *m)
 | 
				
			|||||||
	struct window_pane		*wp;
 | 
						struct window_pane		*wp;
 | 
				
			||||||
	struct window_mode_entry	*wme;
 | 
						struct window_mode_entry	*wme;
 | 
				
			||||||
	struct window_copy_mode_data	*data;
 | 
						struct window_copy_mode_data	*data;
 | 
				
			||||||
	u_int				 x, y;
 | 
						u_int				 x, y, yg;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (c == NULL)
 | 
						if (c == NULL)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
@@ -4143,6 +4143,9 @@ window_copy_start_drag(struct client *c, struct mouse_event *m)
 | 
				
			|||||||
	c->tty.mouse_drag_release = window_copy_drag_release;
 | 
						c->tty.mouse_drag_release = window_copy_drag_release;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	data = wme->data;
 | 
						data = wme->data;
 | 
				
			||||||
 | 
						yg = screen_hsize(data->backing) + y - data->oy;
 | 
				
			||||||
 | 
						if (x < data->selrx || x > data->endselrx || yg != data->selry)
 | 
				
			||||||
 | 
							data->selflag = SEL_CHAR;
 | 
				
			||||||
	switch (data->selflag) {
 | 
						switch (data->selflag) {
 | 
				
			||||||
		case SEL_WORD:
 | 
							case SEL_WORD:
 | 
				
			||||||
			if (data->ws) {
 | 
								if (data->ws) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user