Skip to content
Snippets Groups Projects
Commit cfd1a984 authored by Kevin Ballard's avatar Kevin Ballard Committed by Junio C Hamano
Browse files

diff: handle lines containing only whitespace and tabs better


When a line contains nothing but whitespace with at least one tab
and the core.whitespace config option contains blank-at-eol, the
whitespace on the line is being printed twice, once unhighlighted
(unless otherwise matched by one of the other core.whitespace values),
and a second time highlighted for blank-at-eol.

Update the leading indentation check to stop checking when it reaches
the trailing whitespace.

Signed-off-by: default avatarKevin Ballard <kevin@sb.org>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent a471833d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment