summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoname@inventati.org2015-04-11 12:47:16 +0200
committerRoberto E. Vargas Caballero2015-04-13 09:20:00 +0200
commitb9390a54968c3bc4f4270afdcf5b85911df01611 (patch)
tree45c7e800736823b014725e831d23009c1ca2845a
parentd2937b05aed9cee8d6651cd806d31682a853c773 (diff)
downloadst-b9390a54968c3bc4f4270afdcf5b85911df01611.tar.gz
st-b9390a54968c3bc4f4270afdcf5b85911df01611.tar.xz
st-b9390a54968c3bc4f4270afdcf5b85911df01611.zip
Simplify loop condition.
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
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) {