Re: [dev] [st] Join lines when copying with mous

2013-08-10 Thread Raphaël Proust
On Sat, Aug 10, 2013 at 8:51 AM, Dmitry Potapov wrote: > Can anyone tell me how I can avoid linefeed character pasting when I'm > copying text between terminals? AFAIK this has been fixed in head. So, “update to head” is the answer. $ st -v st 0.4.1 (c) 2010-2013 st engineers --

Re: [dev] [PATCH] Don't insert newlines in wrapped lines

2013-08-10 Thread Roberto E. Vargas Caballero
> > The solution is easy, > > don't add the newline when there is a character in the last position > > of the row. > > This isn't the desired behavior when you fill the line up with exactly > the right number of characters. Just an edge case not to care about? You are right, the correct solution

Re: [dev] [PATCH] Don't insert newlines in wrapped lines

2013-08-10 Thread Andrew Hills
On Sat, 10 Aug 2013 10:37:30 +0200 "Roberto E. Vargas Caballero" wrote: > The solution is easy, > don't add the newline when there is a character in the last position > of the row. This isn't the desired behavior when you fill the line up with exactly the right number of characters. Just an edge

Re: [dev] [PATCH] Don't insert newlines in wrapped lines

2013-08-10 Thread Roberto E. Vargas Caballero
On Sat, Aug 10, 2013 at 04:15:49PM +0400, Dmitry Potapov wrote: > Thanks a lot for quick response. > > Looks like this is already fixed in master. My bad, I haven't checked it > first. You are right, my patch was unneeded. Thanks. -- Roberto E. Vargas Caballero k

Re: [dev] [PATCH] Don't insert newlines in wrapped lines

2013-08-10 Thread Dmitry Potapov
Thanks a lot for quick response. Looks like this is already fixed in master. My bad, I haven't checked it first. -- Thanks On Sat, Aug 10, 2013 at 12:37 PM, Roberto E. Vargas Caballero wrote: > When a line doesn't fit in a row of the terminal it is wrapped, so next > characters of the line are

[dev] [PATCH] Don't insert newlines in wrapped lines

2013-08-10 Thread Roberto E. Vargas Caballero
When a line doesn't fit in a row of the terminal it is wrapped, so next characters of the line are shown in the next row. st adds always a newline character when rows are copied, but it causes that in wrapped lines a non needed newline is appended. The solution is easy, don't add the newline when t

[dev] [st] Join lines when copying with mous

2013-08-10 Thread Dmitry Potapov
Hello everyone, I've encountered the following problems after migrating from xterm: When I'm selecting very long command from terminal (command which wraps to the second line) xterm copies it as single line. When I'm selecting the same command in st, st inserts line feed character at the poin