]> git.armaanb.net Git - st.git/commitdiff
Simplify loop condition.
authornoname@inventati.org <noname@inventati.org>
Sat, 11 Apr 2015 10:47:16 +0000 (12:47 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 13 Apr 2015 07:20:00 +0000 (09:20 +0200)
st.c

diff --git a/st.c b/st.c
index c48132a738e9c479166d2ec96a07bf5c15ac7ac7..4ed8319edb6edbd7b4f593df5a3a5a6ccd500e9f 100644 (file)
--- 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) {