mirror of
https://github.com/alrayyes/st.git
synced 2024-11-25 20:36:23 +00:00
do not add newline to selection text if next line not selected (Nick)
This commit is contained in:
parent
fe72483686
commit
a047431d34
1 changed files with 2 additions and 2 deletions
4
st.c
4
st.c
|
@ -420,8 +420,8 @@ selcopy(void) {
|
|||
memcpy(ptr, term.line[y][x].c, sl);
|
||||
ptr += sl;
|
||||
}
|
||||
if(ls)
|
||||
*ptr = '\n', ptr++;
|
||||
if(ls && y < sel.e.y)
|
||||
*ptr++ = '\n';
|
||||
}
|
||||
*ptr = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue