author | J. Bruce Fields <bfields@citi.umich.edu> | |
Sun, 16 Dec 2007 16:31:41 +0000 (11:31 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 16 Dec 2007 21:07:58 +0000 (13:07 -0800) | ||
commit | ffe568859ba89b4283afc36251561a9be3173bf8 | |
tree | 3734c366a9c89d3537d88f759fd6ce4bcf299407 | tree | snapshot |
parent | 9afa2d4aa9423ab594c7281cc2360df55498a407 | commit | diff |
whitespace: more accurate initial-indent highlighting
Instead of highlighting the entire initial indent, highlight only the
problematic spaces.
In the case of an indent like ' \t \t' there may be multiple problematic
ranges, so it's easiest to emit the highlighting as we go instead of
trying rember disjoint ranges and do it all at the end.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Instead of highlighting the entire initial indent, highlight only the
problematic spaces.
In the case of an indent like ' \t \t' there may be multiple problematic
ranges, so it's easiest to emit the highlighting as we go instead of
trying rember disjoint ranges and do it all at the end.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ws.c | diff | blob | history |