[hackers] [st] Simplify loop condition. || noname_AT_inventati.org

From: <git_AT_suckless.org>
Date: Tue, 14 Apr 2015 09:56:42 +0200 (CEST)

commit b9390a54968c3bc4f4270afdcf5b85911df01611
Author: noname_AT_inventati.org <noname_AT_inventati.org>
Date: Sat Apr 11 12:47:16 2015 +0200

    Simplify loop condition.

diff --git a/st.c b/st.c
index c48132a..4ed8319 100644
--- a/st.c
+++ b/st.c
_AT_@ -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) {
Received on Tue Apr 14 2015 - 09:56:42 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 14 2015 - 10:00:19 CEST