mirror of
https://github.com/alrayyes/st.git
synced 2024-11-26 12:56:22 +00:00
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 <k0ga@shike2.com>
This commit is contained in:
parent
d03aa8d20b
commit
2411308bd2
1 changed files with 1 additions and 1 deletions
2
st.c
2
st.c
|
@ -949,7 +949,7 @@ getsel(void) {
|
||||||
* st.
|
* st.
|
||||||
* FIXME: Fix the computer world.
|
* 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';
|
*ptr++ = '\n';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue