st
simple terminal
git clone https://9o.is/git/st.git
commit 05286b1db6f104ad36ea06c25446978ef7b90948 parent 4899f20f079ed4568015a162b6662b2d746f2a4d 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(-)
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;