mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:44:18 +00:00 
			
		
		
		
	Clear marks when the search string changes. From Anindya Mukherjee,
GitHub issue 3255.
This commit is contained in:
		@@ -3612,6 +3612,8 @@ window_copy_search(struct window_mode_entry *wme, int direction, int regex)
 | 
				
			|||||||
		data->searchall = 0;
 | 
							data->searchall = 0;
 | 
				
			||||||
	} else
 | 
						} else
 | 
				
			||||||
		visible_only = (strcmp(wp->searchstr, str) == 0);
 | 
							visible_only = (strcmp(wp->searchstr, str) == 0);
 | 
				
			||||||
 | 
						if (visible_only == 0 && data->searchmark != NULL)
 | 
				
			||||||
 | 
							window_copy_clear_marks(wme);
 | 
				
			||||||
	free(wp->searchstr);
 | 
						free(wp->searchstr);
 | 
				
			||||||
	wp->searchstr = xstrdup(str);
 | 
						wp->searchstr = xstrdup(str);
 | 
				
			||||||
	wp->searchregex = regex;
 | 
						wp->searchregex = regex;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user