mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		@@ -1668,9 +1668,11 @@ window_copy_cmd_search_backward_incremental(struct window_copy_cmd_state *cs)
 | 
			
		||||
	struct window_mode_entry	*wme = cs->wme;
 | 
			
		||||
	struct window_copy_mode_data	*data = wme->data;
 | 
			
		||||
	const char			*argument = cs->args->argv[1];
 | 
			
		||||
	enum window_copy_cmd_action	 action = WINDOW_COPY_CMD_NOTHING;
 | 
			
		||||
	const char			*ss = data->searchstr;
 | 
			
		||||
	char				 prefix;
 | 
			
		||||
	enum window_copy_cmd_action	 action = WINDOW_COPY_CMD_NOTHING;
 | 
			
		||||
 | 
			
		||||
	prefix = *argument++;
 | 
			
		||||
	if (data->searchx == -1 || data->searchy == -1) {
 | 
			
		||||
		data->searchx = data->cx;
 | 
			
		||||
		data->searchy = data->cy;
 | 
			
		||||
@@ -1681,13 +1683,11 @@ window_copy_cmd_search_backward_incremental(struct window_copy_cmd_state *cs)
 | 
			
		||||
		data->oy = data->searcho;
 | 
			
		||||
		action = WINDOW_COPY_CMD_REDRAW;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (*argument == '\0') {
 | 
			
		||||
		window_copy_clear_marks(wme);
 | 
			
		||||
		return (WINDOW_COPY_CMD_REDRAW);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	switch (*argument++) {
 | 
			
		||||
	switch (prefix) {
 | 
			
		||||
	case '=':
 | 
			
		||||
	case '-':
 | 
			
		||||
		data->searchtype = WINDOW_COPY_SEARCHUP;
 | 
			
		||||
@@ -1717,9 +1717,11 @@ window_copy_cmd_search_forward_incremental(struct window_copy_cmd_state *cs)
 | 
			
		||||
	struct window_mode_entry	*wme = cs->wme;
 | 
			
		||||
	struct window_copy_mode_data	*data = wme->data;
 | 
			
		||||
	const char			*argument = cs->args->argv[1];
 | 
			
		||||
	enum window_copy_cmd_action	 action = WINDOW_COPY_CMD_NOTHING;
 | 
			
		||||
	const char			*ss = data->searchstr;
 | 
			
		||||
	char				 prefix;
 | 
			
		||||
	enum window_copy_cmd_action	 action = WINDOW_COPY_CMD_NOTHING;
 | 
			
		||||
 | 
			
		||||
	prefix = *argument++;
 | 
			
		||||
	if (data->searchx == -1 || data->searchy == -1) {
 | 
			
		||||
		data->searchx = data->cx;
 | 
			
		||||
		data->searchy = data->cy;
 | 
			
		||||
@@ -1730,13 +1732,11 @@ window_copy_cmd_search_forward_incremental(struct window_copy_cmd_state *cs)
 | 
			
		||||
		data->oy = data->searcho;
 | 
			
		||||
		action = WINDOW_COPY_CMD_REDRAW;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (*argument == '\0') {
 | 
			
		||||
		window_copy_clear_marks(wme);
 | 
			
		||||
		return (WINDOW_COPY_CMD_REDRAW);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	switch (*argument++) {
 | 
			
		||||
	switch (prefix) {
 | 
			
		||||
	case '=':
 | 
			
		||||
	case '+':
 | 
			
		||||
		data->searchtype = WINDOW_COPY_SEARCHDOWN;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user