whitespace: fix off-by-one error in non-space-in-indent checking
commiteb768c69c66f7ee223301db5cadacacf70d7d01a
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sat, 15 Dec 2007 18:01:21 +0000 (15 13:01 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 16 Dec 2007 03:17:42 +0000 (15 22:17 -0500)
treea2f884aca7d7761a85bb6816d5d7624bee06c6e3
parent7680087e7c8125e7397aa5761f5c5ddbb02a8326
whitespace: fix off-by-one error in non-space-in-indent checking

If there were no tabs, and the last space was at position 7, then
positions 0..7 had spaces, so there were 8 spaces.

Update test to check exactly this case.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
t/t4015-diff-whitespace.sh
ws.c