diff options
| author | noname@inventati.org <noname@inventati.org> | 2015-04-13 14:34:23 +0200 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-04-13 15:17:24 +0200 |
| commit | e6dd0f825da9bf68c7642f45afd069500879f5e2 (patch) | |
| tree | 014fd1840c79711ca2705f05fc5a908bf7d14be4 | |
| parent | b0310fba5de0c519eae0c8a2817ccc7bfcdd5222 (diff) | |
| download | st-e6dd0f825da9bf68c7642f45afd069500879f5e2.tar.gz st-e6dd0f825da9bf68c7642f45afd069500879f5e2.zip | |
Remove useless if in tstrsequence.
| -rw-r--r-- | st.c | 28 |
1 files changed, 13 insertions, 15 deletions
| @@ -2444,21 +2444,19 @@ tdectest(char c) { | |||
| 2444 | 2444 | ||
| 2445 | void | 2445 | void |
| 2446 | tstrsequence(uchar c) { | 2446 | tstrsequence(uchar c) { |
| 2447 | if (c & 0x80) { | 2447 | switch (c) { |
| 2448 | switch (c) { | 2448 | case 0x90: /* DCS -- Device Control String */ |
| 2449 | case 0x90: /* DCS -- Device Control String */ | 2449 | c = 'P'; |
| 2450 | c = 'P'; | 2450 | break; |
| 2451 | break; | 2451 | case 0x9f: /* APC -- Application Program Command */ |
| 2452 | case 0x9f: /* APC -- Application Program Command */ | 2452 | c = '_'; |
| 2453 | c = '_'; | 2453 | break; |
| 2454 | break; | 2454 | case 0x9e: /* PM -- Privacy Message */ |
| 2455 | case 0x9e: /* PM -- Privacy Message */ | 2455 | c = '^'; |
| 2456 | c = '^'; | 2456 | break; |
| 2457 | break; | 2457 | case 0x9d: /* OSC -- Operating System Command */ |
| 2458 | case 0x9d: /* OSC -- Operating System Command */ | 2458 | c = ']'; |
| 2459 | c = ']'; | 2459 | break; |
| 2460 | break; | ||
| 2461 | } | ||
| 2462 | } | 2460 | } |
| 2463 | strreset(); | 2461 | strreset(); |
| 2464 | strescseq.type = c; | 2462 | strescseq.type = c; |
