[dev] [PATCH] Fixed copying empty lines inside selection.

From: Alexander <alex0player_AT_gmail.com>
Date: Mon, 26 May 2014 09:23:56 +0400

The code was assuming that empty lines have implicit wrap-around attribute.
---
 st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 6424b54..506be0f 100644
--- a/st.c
+++ b/st.c
_AT_@ -949,7 +949,7 @@ getsel(void) {
 		 * st.
 		 * FIXME: Fix the computer world.
 		 */
-		if(y < sel.ne.y && x > 0 && !((gp-1)->mode & ATTR_WRAP))
+		if(y < sel.ne.y && !(x > 0 && (gp-1)->mode & ATTR_WRAP))
 			*ptr++ = '\n';
 
 		/*
-- 
1.9.0.msysgit.0
Received on Mon May 26 2014 - 07:23:56 CEST

This archive was generated by hypermail 2.3.0 : Mon May 26 2014 - 07:36:03 CEST