[dev] [st] [PATCH] Use worddelimiters for word selection over wrapped lines.

2014-06-04 Thread Colona
If a word delimiter was at the very beginning or end of one of the different lines composing a wrapped line, the delimiter was ignored for word selection. This now checks for delimiters before moving on to the next part of a wrapped line. --- st.c | 9 + 1 file changed, 5 insertions(+), 4

Re: [dev] [st] [PATCH] Use worddelimiters for word selection over wrapped lines.

2014-06-04 Thread Roberto E. Vargas Caballero
A few style questions: - if(*y 0 term.line[*y - 1][term.col-1].mode - ATTR_WRAP) { + if(*y 0 term.line[*y-1][term.col-1].mode ATTR_WRAP +

Re: [dev] [st] [PATCH] Use worddelimiters for word selection over wrapped lines.

2014-06-04 Thread Colona
On Wed, Jun 04, 2014 at 09:32:11PM +0200, Roberto E. Vargas Caballero wrote: Maybe the use of to allow sequential code in a 'if' is not a good idea, and maybe some refactoring could be done here to avoid so long lines and the ugly sequential . You’re right, I gave it a try and actually