all repos — st @ 89cf0fc597a2bcc16b1516c6f6d750a06175f1c7

st (suckless terminal) config

Small bugfix for makeglyphfontspecs call in drawregion

Here's a patch that fixes a bug when calling `makedrawglyphfontspecs'
in `drawregion'. Wasn't offseting the pointer into the input glyphs
array by `x1'. The bug isn't causing any problems currently, because
`drawregion' is always called with `x1' and `y1' values of 0, but if
this ever changes in the future, the bug would certainly cause some
problems.
suigin suigin@national.shitposting.agency
commit

89cf0fc597a2bcc16b1516c6f6d750a06175f1c7

parent

ae1923d27533ff46400d93765e971558201ca1ee

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M st.cst.c

@@ -3663,7 +3663,7 @@ xtermclear(0, y, term.col, y);

term.dirty[y] = 0; specs = term.specbuf; - numspecs = xmakeglyphfontspecs(specs, &term.line[y][0], x2 - x1, x1, y); + numspecs = xmakeglyphfontspecs(specs, &term.line[y][x1], x2 - x1, x1, y); i = ox = 0; for(x = x1; x < x2 && i < numspecs; x++) {