Fix indentation

This commit is contained in:
Christopher Lang 2023-07-27 13:46:44 +01:00
parent 36d225d71d
commit 028aeda9fc
2 changed files with 14 additions and 15 deletions

4
st.c
View file

@ -2100,8 +2100,8 @@ externalpipe(const Arg *arg)
lastpos = MIN(tlinehistlen(n) + 1, term.col) - 1; lastpos = MIN(tlinehistlen(n) + 1, term.col) - 1;
if (lastpos < 0) if (lastpos < 0)
break; break;
if (lastpos == 0) if (lastpos == 0)
continue; continue;
end = &bp[lastpos + 1]; end = &bp[lastpos + 1];
for (; bp < end; ++bp) for (; bp < end; ++bp)
if (xwrite(to[1], buf, utf8encode(bp->u, buf)) < 0) if (xwrite(to[1], buf, utf8encode(bp->u, buf)) < 0)

25
x.c
View file

@ -319,13 +319,13 @@ numlock(const Arg *dummy)
void void
changealpha(const Arg *arg) changealpha(const Arg *arg)
{ {
if((alpha > 0 && arg->f < 0) || (alpha < 1 && arg->f > 0)) if((alpha > 0 && arg->f < 0) || (alpha < 1 && arg->f > 0))
alpha += arg->f; alpha += arg->f;
alpha = clamp(alpha, 0.0, 1.0); alpha = clamp(alpha, 0.0, 1.0);
alphaUnfocus = clamp(alpha-alphaOffset, 0.0, 1.0); alphaUnfocus = clamp(alpha-alphaOffset, 0.0, 1.0);
xloadcols(); xloadcols();
redraw(); redraw();
} }
void void
@ -383,11 +383,11 @@ evrow(XEvent *e)
float float
clamp(float value, float lower, float upper) { clamp(float value, float lower, float upper) {
if(value < lower) if(value < lower)
return lower; return lower;
if(value > upper) if(value > upper)
return upper; return upper;
return value; return value;
} }
void void
@ -1663,8 +1663,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
/* Render underline and strikethrough. */ /* Render underline and strikethrough. */
if (base.mode & ATTR_UNDERLINE) { if (base.mode & ATTR_UNDERLINE) {
XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent + 1, XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent + 1, width, 1);
width, 1);
} }
if (base.mode & ATTR_STRUCK) { if (base.mode & ATTR_STRUCK) {