Browse Source

builtin-apply: stronger indent-with-on-tab fixing

Fix any sequence of 8 spaces in initial indent, not just the case where
the 8 spaces are the first thing on the line.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
J. Bruce Fields 17 years ago committed by Junio C Hamano
parent
commit
b90ced0f7d
  1. 3
      builtin-apply.c

3
builtin-apply.c

@ -1587,8 +1587,7 @@ static int apply_line(char *output, const char *patch, int plen, @@ -1587,8 +1587,7 @@ static int apply_line(char *output, const char *patch, int plen,
} else if (ch == ' ') {
last_space_in_indent = i;
if ((ws_rule & WS_INDENT_WITH_NON_TAB) &&
last_tab_in_indent <= 0 &&
8 <= i)
8 <= i - last_tab_in_indent)
need_fix_leading_space = 1;
}
else

Loading…
Cancel
Save