]> git.ipfire.org Git - thirdparty/git.git/commit
whitespace: more accurate initial-indent highlighting
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 16 Dec 2007 16:31:41 +0000 (11:31 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 16 Dec 2007 21:07:58 +0000 (13:07 -0800)
commitffe568859ba89b4283afc36251561a9be3173bf8
tree3734c366a9c89d3537d88f759fd6ce4bcf299407
parent9afa2d4aa9423ab594c7281cc2360df55498a407
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>
ws.c