mirror of
https://github.com/alrayyes/st.git
synced 2024-11-22 03:16:22 +00:00
Remove useless if in tstrsequence.
This commit is contained in:
parent
b0310fba5d
commit
e6dd0f825d
1 changed files with 13 additions and 15 deletions
28
st.c
28
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;
|
||||
|
|
Loading…
Reference in a new issue