aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2011-04-01 09:12:27 +0200
committerHans Bolinder <[email protected]>2011-04-01 09:12:27 +0200
commitefd032654990280daee58463b3208ef843008a2a (patch)
tree3bf1795d93835d0c3406813e2733e895866957da
parent07307ef070010af9a2ba1d3fb0eeb969f5a9e847 (diff)
parentf135c4e688dba07b42024295c1f111a106a0820c (diff)
downloadotp-efd032654990280daee58463b3208ef843008a2a.tar.gz
otp-efd032654990280daee58463b3208ef843008a2a.tar.bz2
otp-efd032654990280daee58463b3208ef843008a2a.zip
Merge branch 'hb/syntax_tools/bug_erl_recomment/OTP-9180' into dev
* hb/syntax_tools/bug_erl_recomment/OTP-9180: Fix a bug in erl_recomment
-rw-r--r--lib/syntax_tools/src/erl_recomment.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/syntax_tools/src/erl_recomment.erl b/lib/syntax_tools/src/erl_recomment.erl
index 919e9cfc5d..fc7c515700 100644
--- a/lib/syntax_tools/src/erl_recomment.erl
+++ b/lib/syntax_tools/src/erl_recomment.erl
@@ -163,7 +163,7 @@ recomment_forms_2(C, [N | Ns] = Nodes, Insert) ->
Trailing =
case Ns of
[] -> true;
- [Next | _] -> L < node_min(Next) - 2
+ [Next | _] -> L + Delta < node_min(Next) - 2
end,
if L > Max + 1 ; L =:= Max + 1, not Trailing ->
[N | recomment_forms_2(C, Ns, Insert)];