mirror of
git://git.suckless.org/st
synced 2025-05-12 17:26:31 +01:00
do not add newline to selection text if next line not selected (Nick)
This commit is contained in:
parent
f27e662faa
commit
ff97be88d5
4
st.c
4
st.c
@ -420,8 +420,8 @@ selcopy(void) {
|
|||||||
memcpy(ptr, term.line[y][x].c, sl);
|
memcpy(ptr, term.line[y][x].c, sl);
|
||||||
ptr += sl;
|
ptr += sl;
|
||||||
}
|
}
|
||||||
if(ls)
|
if(ls && y < sel.e.y)
|
||||||
*ptr = '\n', ptr++;
|
*ptr++ = '\n';
|
||||||
}
|
}
|
||||||
*ptr = 0;
|
*ptr = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user