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