Re: [dev] [PATCH 4/5] selsnap: remove prevdelim variable
> _AT_@ -753,14 +752,13 @@ selsnap(int *x, int *y, int direction) {
>
> gp = &term.line[newy][newx];
> delim = ISDELIM(gp->u);
> - if(!(gp->mode & ATTR_WDUMMY) && (delim != prevdelim
> + if(!(gp->mode & ATTR_WDUMMY) && (delim != ISDELIM(prevgp->u)
I prefer the current code because your code implies this code in all the
iterations:
(BETWEEN(u, 0, 127) && strchr(worddelimiters, u) != NULL)
and I think is better to hold the result in prevdelim.
Regards,
Received on Mon May 04 2015 - 11:28:10 CEST
This archive was generated by hypermail 2.3.0
: Mon May 04 2015 - 11:36:08 CEST