tFixed copying empty lines inside selection. - st - [fork] customized build of … | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 2411308bd24c4db97a3bb06d38f183a679aec1ea | |
parent d03aa8d20bcc8a94a7737331a9ec0bf11df3e572 | |
Author: Alexander <[email protected]> | |
Date: Mon, 26 May 2014 09:23:56 +0400 | |
Fixed copying empty lines inside selection. | |
The code was assuming that empty lines have implicit wrap-around attribute. | |
Signed-off-by: Roberto E. Vargas Caballero <[email protected]> | |
Diffstat: | |
M st.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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'; | |
/* |