Commit Diff


commit - 8304d4f0599b1be2226c28c553547070658d4af3
commit + 9c30066e73f0105c3fccb7582c8172d5117857b3
blob - 8c42a9caa273a1c6cceb039d290036ed13440533
blob + 7c15d5f68fdc6d52b75b14d0c0d63ad78215a318
--- st.c
+++ st.c
@@ -634,7 +634,8 @@ getsel(void)
 		 * st.
 		 * FIXME: Fix the computer world.
 		 */
-		if ((y < sel.ne.y || lastx >= linelen) && !(last->mode & ATTR_WRAP))
+		if ((y < sel.ne.y || lastx >= linelen) &&
+		    (!(last->mode & ATTR_WRAP) || sel.type == SEL_RECTANGULAR))
 			*ptr++ = '\n';
 	}
 	*ptr = 0;