~petersanchez/st

e6dd0f825da9bf68c7642f45afd069500879f5e2 — noname@inventati.org 9 years ago b0310fb
Remove useless if in tstrsequence.
1 files changed, 13 insertions(+), 15 deletions(-)

M st.c
M st.c => st.c +13 -15
@@ 2444,21 2444,19 @@ tdectest(char c) {

void
tstrsequence(uchar c) {
	if (c & 0x80) {
		switch (c) {
		case 0x90:   /* DCS -- Device Control String */
			c = 'P';
			break;
		case 0x9f:   /* APC -- Application Program Command */
			c = '_';
			break;
		case 0x9e:   /* PM -- Privacy Message */
			c = '^';
			break;
		case 0x9d:   /* OSC -- Operating System Command */
			c = ']';
			break;
		}
	switch (c) {
	case 0x90:   /* DCS -- Device Control String */
		c = 'P';
		break;
	case 0x9f:   /* APC -- Application Program Command */
		c = '_';
		break;
	case 0x9e:   /* PM -- Privacy Message */
		c = '^';
		break;
	case 0x9d:   /* OSC -- Operating System Command */
		c = ']';
		break;
	}
	strreset();
	strescseq.type = c;