mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-21 23:05:59 +01:00
Fix selection: ignore ATTR_WRAP when rectangular selection in getsel
This commit is contained in:
parent
8304d4f059
commit
9c30066e73
1 changed files with 2 additions and 1 deletions
3
st.c
3
st.c
|
@ -634,7 +634,8 @@ getsel(void)
|
||||||
* st.
|
* st.
|
||||||
* FIXME: Fix the computer world.
|
* 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++ = '\n';
|
||||||
}
|
}
|
||||||
*ptr = 0;
|
*ptr = 0;
|
||||||
|
|
Loading…
Reference in a new issue