diff options
| -rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -420,8 +420,8 @@ selcopy(void) { | |||
| 420 | memcpy(ptr, term.line[y][x].c, sl); | 420 | memcpy(ptr, term.line[y][x].c, sl); |
| 421 | ptr += sl; | 421 | ptr += sl; |
| 422 | } | 422 | } |
| 423 | if(ls) | 423 | if(ls && y < sel.e.y) |
| 424 | *ptr = '\n', ptr++; | 424 | *ptr++ = '\n'; |
| 425 | } | 425 | } |
| 426 | *ptr = 0; | 426 | *ptr = 0; |
| 427 | } | 427 | } |
