Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b0310fb
)
Remove useless if in tstrsequence.
author
[email protected]
<
[email protected]
>
Mon, 13 Apr 2015 12:34:23 +0000
(14:34 +0200)
committer
Roberto E. Vargas Caballero <
[email protected]
>
Mon, 13 Apr 2015 13:17:24 +0000
(15:17 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
79bb6aa
..
4f5cf9e
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-2444,21
+2444,19
@@
tdectest(char c) {
void
tstrsequence(uchar 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;
}
strreset();
strescseq.type = c;