mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Remove the c0-* options which never really worked satisfactorily. Going
to try something else...
This commit is contained in:
		
							
								
								
									
										16
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								input.c
									
									
									
									
									
								
							@@ -1069,7 +1069,6 @@ input_c0_dispatch(struct input_ctx *ictx)
 | 
			
		||||
	struct screen_write_ctx	*sctx = &ictx->ctx;
 | 
			
		||||
	struct window_pane	*wp = ictx->wp;
 | 
			
		||||
	struct screen		*s = sctx->s;
 | 
			
		||||
	u_int			 trigger;
 | 
			
		||||
 | 
			
		||||
	log_debug("%s: '%c", __func__, ictx->ch);
 | 
			
		||||
 | 
			
		||||
@@ -1081,7 +1080,7 @@ input_c0_dispatch(struct input_ctx *ictx)
 | 
			
		||||
		break;
 | 
			
		||||
	case '\010':	/* BS */
 | 
			
		||||
		screen_write_backspace(sctx);
 | 
			
		||||
		goto count_c0;
 | 
			
		||||
		break;
 | 
			
		||||
	case '\011':	/* HT */
 | 
			
		||||
		/* Don't tab beyond the end of the line. */
 | 
			
		||||
		if (s->cx >= screen_size_x(s) - 1)
 | 
			
		||||
@@ -1098,10 +1097,10 @@ input_c0_dispatch(struct input_ctx *ictx)
 | 
			
		||||
	case '\013':	/* VT */
 | 
			
		||||
	case '\014':	/* FF */
 | 
			
		||||
		screen_write_linefeed(sctx, 0);
 | 
			
		||||
		goto count_c0;
 | 
			
		||||
		break;
 | 
			
		||||
	case '\015':	/* CR */
 | 
			
		||||
		screen_write_carriagereturn(sctx);
 | 
			
		||||
		goto count_c0;
 | 
			
		||||
		break;
 | 
			
		||||
	case '\016':	/* SO */
 | 
			
		||||
		ictx->cell.set = 1;
 | 
			
		||||
		break;
 | 
			
		||||
@@ -1113,15 +1112,6 @@ input_c0_dispatch(struct input_ctx *ictx)
 | 
			
		||||
		break;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return (0);
 | 
			
		||||
 | 
			
		||||
count_c0:
 | 
			
		||||
	trigger = options_get_number(&wp->window->options, "c0-change-trigger");
 | 
			
		||||
	if (trigger != 0 && ++wp->changes >= trigger) {
 | 
			
		||||
		wp->flags |= PANE_DROP;
 | 
			
		||||
		window_pane_timer_start(wp);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return (0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user