tSimplify loop condition. - st - [fork] customized build of st, the simple term… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit b9390a54968c3bc4f4270afdcf5b85911df01611 | |
parent d2937b05aed9cee8d6651cd806d31682a853c773 | |
Author: [email protected] <[email protected]> | |
Date: Sat, 11 Apr 2015 12:47:16 +0200 | |
Simplify loop condition. | |
Diffstat: | |
M st.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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) { |