diff options
author | Hans Bolinder <[email protected]> | 2011-04-01 09:12:27 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2011-04-01 09:12:27 +0200 |
commit | efd032654990280daee58463b3208ef843008a2a (patch) | |
tree | 3bf1795d93835d0c3406813e2733e895866957da | |
parent | 07307ef070010af9a2ba1d3fb0eeb969f5a9e847 (diff) | |
parent | f135c4e688dba07b42024295c1f111a106a0820c (diff) | |
download | otp-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.erl | 2 |
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)]; |