Simplify loop condition.
noname@inventati.org noname@inventati.org
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
st.c
→
st.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) {