diff options
| author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-05-09 14:43:31 +0200 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-05-09 14:43:31 +0200 |
| commit | 914fb825df3bde7abdd7947e54f8bf4d2b55e34e (patch) | |
| tree | bca6a1bc44dedf37862dd23421737aafac800a5c | |
| parent | optimize column width calculation and utf-8 encode for ASCII (diff) | |
| download | st-914fb825df3bde7abdd7947e54f8bf4d2b55e34e.tar.gz st-914fb825df3bde7abdd7947e54f8bf4d2b55e34e.zip | |
code-style: add fallthrough comment
Patch by Steve Ward, thanks.
| -rw-r--r-- | st.c | 1 | ||||
| -rw-r--r-- | x.c | 1 |
2 files changed, 2 insertions, 0 deletions
| @@ -2153,6 +2153,7 @@ tcontrolcode(uchar ascii) | |||
| 2153 | return; | 2153 | return; |
| 2154 | case '\032': /* SUB */ | 2154 | case '\032': /* SUB */ |
| 2155 | tsetchar('?', &term.c.attr, term.c.x, term.c.y); | 2155 | tsetchar('?', &term.c.attr, term.c.x, term.c.y); |
| 2156 | /* FALLTHROUGH */ | ||
| 2156 | case '\030': /* CAN */ | 2157 | case '\030': /* CAN */ |
| 2157 | csireset(); | 2158 | csireset(); |
| 2158 | break; | 2159 | break; |
| @@ -1528,6 +1528,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og) | |||
| 1528 | switch (win.cursor) { | 1528 | switch (win.cursor) { |
| 1529 | case 7: /* st extension: snowman (U+2603) */ | 1529 | case 7: /* st extension: snowman (U+2603) */ |
| 1530 | g.u = 0x2603; | 1530 | g.u = 0x2603; |
| 1531 | /* FALLTHROUGH */ | ||
| 1531 | case 0: /* Blinking Block */ | 1532 | case 0: /* Blinking Block */ |
| 1532 | case 1: /* Blinking Block (Default) */ | 1533 | case 1: /* Blinking Block (Default) */ |
| 1533 | case 2: /* Steady Block */ | 1534 | case 2: /* Steady Block */ |
