mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Check previous line rather than an extra line, from Anindya Mukherjee.
This commit is contained in:
		@@ -2825,11 +2825,8 @@ window_copy_search_marks(struct window_mode_entry *wme, struct screen *ssp,
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	time(&tstart);
 | 
						time(&tstart);
 | 
				
			||||||
	py = gd->hsize - data->oy;
 | 
						for (py = gd->hsize - data->oy; py > 0; py--) {
 | 
				
			||||||
	if (py > 0)
 | 
							gl = grid_peek_line(gd, py - 1);
 | 
				
			||||||
		py--;
 | 
					 | 
				
			||||||
	for (; py > 0; py--) {
 | 
					 | 
				
			||||||
		gl = grid_peek_line(gd, py);
 | 
					 | 
				
			||||||
		if (~gl->flags & GRID_LINE_WRAPPED)
 | 
							if (~gl->flags & GRID_LINE_WRAPPED)
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user