Remove useless if in tstrsequence. - st - simple terminal (HTM) git clone https://git.parazyd.org/st (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit e6dd0f825da9bf68c7642f45afd069500879f5e2 (DIR) parent b0310fba5de0c519eae0c8a2817ccc7bfcdd5222 (HTM) Author: noname@inventati.org <noname@inventati.org> Date: Mon, 13 Apr 2015 14:34:23 +0200 Remove useless if in tstrsequence. Diffstat: M st.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) --- (DIR) diff --git a/st.c b/st.c @@ -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;