---
st.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 497885b..1c34258 100644
--- a/st.c
+++ b/st.c
_AT_@ -662,6 +662,9 @@ y2row(int y) {
static int tlinelen(int y) {
int i = term.col;
+ if (term.line[y][i - 1].mode & ATTR_WRAP)
+ return i;
+
while (i > 0 && term.line[y][i - 1].c[0] == ' ')
--i;
_AT_@ -959,7 +962,7 @@ getsel(void) {
* st.
* FIXME: Fix the computer world.
*/
- if(sel.ne.y > y || lastx >= linelen)
+ if((y < sel.ne.y || lastx >= linelen) && !(last->mode & ATTR_WRAP))
*ptr++ = '\n';
}
*ptr = 0;
--
1.9.1
Received on Fri Aug 22 2014 - 18:25:04 CEST
This archive was generated by hypermail 2.3.0 : Fri Aug 22 2014 - 18:36:07 CEST