소스 검색

Simplify techo

Remove special case for \e because it is handled well by "control code"
case.
noname@inventati.org 11 년 전
부모
커밋
4ad2fc7f18
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      st.c

+ 1 - 4
st.c

@@ -2318,10 +2318,7 @@ techo(char *buf, int len) {
 	for(; len > 0; buf++, len--) {
 		char c = *buf;
 
-		if(c == '\033') { /* escape */
-			tputc("^", 1);
-			tputc("[", 1);
-		} else if(c < '\x20') { /* control code */
+		if(c < '\x20') { /* control code */
 			if(c != '\n' && c != '\r' && c != '\t') {
 				c |= '\x40';
 				tputc("^", 1);