From: noname@inventati.org Date: Sat, 11 Apr 2015 10:47:16 +0000 (+0200) Subject: Simplify loop condition. X-Git-Url: https://git.xinqibao.xyz/st.git/commitdiff_plain/b9390a54968c3bc4f4270afdcf5b85911df01611?ds=inline;hp=--cc Simplify loop condition. --- b9390a54968c3bc4f4270afdcf5b85911df01611 diff --git a/st.c b/st.c index c48132a..4ed8319 100644 --- a/st.c +++ b/st.c @@ -944,7 +944,7 @@ getsel(void) { 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) {