all repos — st @ b9390a54968c3bc4f4270afdcf5b85911df01611

st (suckless terminal) config

Simplify loop condition.
noname@inventati.org noname@inventati.org
commit

b9390a54968c3bc4f4270afdcf5b85911df01611

parent

d2937b05aed9cee8d6651cd806d31682a853c773

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

jump to
M st.cst.c

@@ -944,7 +944,7 @@ bufsize = (term.col+1) * (sel.ne.y-sel.nb.y+1) * UTF_SIZ;

ptr = str = xmalloc(bufsize); /* append every set & selected glyph to the selection */ - for(y = sel.nb.y; y < sel.ne.y + 1; y++) { + for(y = sel.nb.y; y <= sel.ne.y; y++) { linelen = tlinelen(y); if(sel.type == SEL_RECTANGULAR) {