Re: [PATCH alt-v1] Improve function dir.c:trim_trailing_spaces()

2014-05-30 Thread Duy Nguyen
On Sat, May 31, 2014 at 3:20 AM, Pasha Bolokhov wrote: > Discard unnecessary 'nr_spaces' variable and improve > the 'if' structure. Switch to pointers instead of integers > > Slightly more rare occurrences of 'text \' with a backslash > in between spaces are handled correctly. Namely, the cod

[PATCH alt-v1] Improve function dir.c:trim_trailing_spaces()

2014-05-30 Thread Pasha Bolokhov
Discard unnecessary 'nr_spaces' variable and improve the 'if' structure. Switch to pointers instead of integers Slightly more rare occurrences of 'text \' with a backslash in between spaces are handled correctly. Namely, the code in 8ba87adad6 does not reset 'last_space' when a backslash is e