Re: [dev] [st] [PATCH] Make selection consistent over line breaks.

2014-06-03 Thread Hiltjo Posthuma
On Tue, Jun 3, 2014 at 4:34 AM, Colona col...@ycc.fr wrote: Currently, selection is expanded to the end of the line over line breaks only in regular selection mode, when the line in not empty and when going down and/or right. This covers all the cases including word selection mode, with the

Re: [dev] [st] [PATCH] Make selection consistent over line breaks.

2014-06-03 Thread Roberto E. Vargas Caballero
This patch makes sense to me, so I'll apply it unless someone has a problem with it. Regards, -- Roberto E. Vargas Caballero

Re: [dev] [st] [PATCH] Make selection consistent over line breaks.

2014-06-03 Thread Roberto E. Vargas Caballero
I like it. The logic in getsel() can also use the tlinelen function. I attached a patch which does this and removes a couple of lines. It depends on both patches you sent. Good catch, your patch makes the code cleaner and eliminate duplicated copies of the same code, so I will apply it.

[dev] [st] [PATCH] Make selection consistent over line breaks.

2014-06-02 Thread Colona
Currently, selection is expanded to the end of the line over line breaks only in regular selection mode, when the line in not empty and when going down and/or right. This covers all the cases including word selection mode, with the exception of rectangular selection because it would make this mode