mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Fix next-matching-bracket logic, from Chris Barber.
This commit is contained in:
		@@ -1365,9 +1365,9 @@ window_copy_cmd_next_matching_bracket(struct window_copy_cmd_state *cs)
 | 
				
			|||||||
				px = data->cx;
 | 
									px = data->cx;
 | 
				
			||||||
				py = screen_hsize(s) + data->cy - data->oy;
 | 
									py = screen_hsize(s) + data->cy - data->oy;
 | 
				
			||||||
				grid_get_cell(s->grid, px, py, &gc);
 | 
									grid_get_cell(s->grid, px, py, &gc);
 | 
				
			||||||
				if (gc.data.size != 1 ||
 | 
									if (gc.data.size == 1 &&
 | 
				
			||||||
				    (gc.flags & GRID_FLAG_PADDING) ||
 | 
									    (~gc.flags & GRID_FLAG_PADDING) &&
 | 
				
			||||||
				    strchr(close, *gc.data.data) == NULL)
 | 
									    strchr(close, *gc.data.data) != NULL)
 | 
				
			||||||
					window_copy_scroll_to(wme, sx, sy);
 | 
										window_copy_scroll_to(wme, sx, sy);
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user