mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	With incremental search, start empty and only repeat the previous search
if the user tries to search again with an empty prompt. This matches emacs behaviour more closely.
This commit is contained in:
		@@ -2030,6 +2030,8 @@ window_copy_cmd_search_backward_incremental(struct window_copy_cmd_state *cs)
 | 
			
		||||
 | 
			
		||||
	data->timeout = 0;
 | 
			
		||||
 | 
			
		||||
	log_debug ("%s: %s", __func__, argument);
 | 
			
		||||
 | 
			
		||||
	prefix = *argument++;
 | 
			
		||||
	if (data->searchx == -1 || data->searchy == -1) {
 | 
			
		||||
		data->searchx = data->cx;
 | 
			
		||||
@@ -2083,6 +2085,8 @@ window_copy_cmd_search_forward_incremental(struct window_copy_cmd_state *cs)
 | 
			
		||||
 | 
			
		||||
	data->timeout = 0;
 | 
			
		||||
 | 
			
		||||
	log_debug ("%s: %s", __func__, argument);
 | 
			
		||||
 | 
			
		||||
	prefix = *argument++;
 | 
			
		||||
	if (data->searchx == -1 || data->searchy == -1) {
 | 
			
		||||
		data->searchx = data->cx;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user