[hackers] [st] Remove useless if in tstrsequence. || noname_AT_inventati.org

From: <git_AT_suckless.org>
Date: Tue, 14 Apr 2015 09:56:42 +0200 (CEST)

commit e6dd0f825da9bf68c7642f45afd069500879f5e2
Author: noname_AT_inventati.org <noname_AT_inventati.org>
Date: Mon Apr 13 14:34:23 2015 +0200

    Remove useless if in tstrsequence.

diff --git a/st.c b/st.c
index 79bb6aa..4f5cf9e 100644
--- a/st.c
+++ b/st.c
_AT_@ -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;
Received on Tue Apr 14 2015 - 09:56:42 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 14 2015 - 10:00:29 CEST