code-style: add fallthrough comment
Patch by Steve Ward, thanks.
This commit is contained in:
parent
0c41364e3d
commit
7a1259e112
|
@ -1,4 +1,4 @@
|
||||||
Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this st 0.8.3 (aee9f9, 2020-05-09) project has a different take on st patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more.
|
Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this st 0.8.3 (55e34e, 2020-05-09) project has a different take on st patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more.
|
||||||
|
|
||||||
For example to include the `alpha` patch then you would only need to flip this setting from 0 to 1 in [patches.h](https://github.com/bakkeby/st-flexipatch/blob/master/patches.def.h):
|
For example to include the `alpha` patch then you would only need to flip this setting from 0 to 1 in [patches.h](https://github.com/bakkeby/st-flexipatch/blob/master/patches.def.h):
|
||||||
```c
|
```c
|
||||||
|
@ -15,7 +15,7 @@ Refer to [https://st.suckless.org/](https://st.suckless.org/) for details on the
|
||||||
|
|
||||||
### Changelog:
|
### Changelog:
|
||||||
|
|
||||||
2020-05-20 - Upgrade to aee9f9, 2020-05-09, removed visualbell 1, 2, 3 patches and force redraw after keypress due to incompatibility
|
2020-05-20 - Upgrade to 55e34e, 2020-05-09, removed visualbell 1, 2, 3 patches and force redraw after keypress due to incompatibility
|
||||||
|
|
||||||
2020-04-20 - Upgrade to c279f5, 2020-04-19, and added the force redraw on pselect after key is pressed patch and the externalpipein patch
|
2020-04-20 - Upgrade to c279f5, 2020-04-19, and added the force redraw on pselect after key is pressed patch and the externalpipein patch
|
||||||
|
|
||||||
|
|
1
st.c
1
st.c
|
@ -2315,6 +2315,7 @@ tcontrolcode(uchar ascii)
|
||||||
return;
|
return;
|
||||||
case '\032': /* SUB */
|
case '\032': /* SUB */
|
||||||
tsetchar('?', &term.c.attr, term.c.x, term.c.y);
|
tsetchar('?', &term.c.attr, term.c.x, term.c.y);
|
||||||
|
/* FALLTHROUGH */
|
||||||
case '\030': /* CAN */
|
case '\030': /* CAN */
|
||||||
csireset();
|
csireset();
|
||||||
break;
|
break;
|
||||||
|
|
1
x.c
1
x.c
|
@ -1827,6 +1827,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og)
|
||||||
switch (win.cursor) {
|
switch (win.cursor) {
|
||||||
case 7: /* st extension: snowman (U+2603) */
|
case 7: /* st extension: snowman (U+2603) */
|
||||||
g.u = 0x2603;
|
g.u = 0x2603;
|
||||||
|
/* FALLTHROUGH */
|
||||||
case 0: /* Blinking Block */
|
case 0: /* Blinking Block */
|
||||||
case 1: /* Blinking Block (Default) */
|
case 1: /* Blinking Block (Default) */
|
||||||
case 2: /* Steady Block */
|
case 2: /* Steady Block */
|
||||||
|
|
Loading…
Reference in New Issue