[dev] [st] [PATCH 2/2] Simplify loop condition.

From: noname <noname_AT_inventati.org>
Date: Sat, 11 Apr 2015 10:46:59 +0000

---
 st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c
index df79e93..28beca2 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) {
-- 
2.3.5
Received on Sat Apr 11 2015 - 12:46:59 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 11 2015 - 12:48:12 CEST