]> git.donarmstrong.com Git - perltidy.git/commitdiff
Remove limit on the value of -ci=n when -xci is set
authorSteve Hancock <perltidy@users.sourceforge.net>
Tue, 29 Jun 2021 00:30:22 +0000 (17:30 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Tue, 29 Jun 2021 00:30:22 +0000 (17:30 -0700)
lib/Perl/Tidy/Formatter.pm
local-docs/BugLog.pod

index de61902495345ede291ef15128bcd6a0ed001d00..f3c38e83a9b2d4c848f80c7602caf8dc499aa420 100644 (file)
@@ -1104,21 +1104,6 @@ sub check_options {
         Exit(0);
     }
 
-    # Do not let the value of -ci exceed the value of -i if -xci is set.  This
-    # can lead to blinking states.  Silently reduce the -ci value to -i if this
-    # occurs.  Fixes b707 b770 b912 b920 b930 b933 b939 b940 b941 b942 b978
-    if (   $rOpts->{'continuation-indentation'} > $rOpts->{'indent-columns'}
-        && $rOpts->{'extended-continuation-indentation'} )
-    {
-        $rOpts->{'continuation-indentation'} = $rOpts->{'indent-columns'};
-        Warn(<<EOM);
------------------------------------------------------------------------
-Reducing the value of --continuation-indentation to the value of --indent-columns.
-This is required when -xci is used to avoid possible formatting instability.
------------------------------------------------------------------------
-EOM
-    }
-
     if ( $rOpts->{'line-up-parentheses'} ) {
 
         if (   $rOpts->{'indent-only'}
index 5340f2bd22f4027cb3af8fc98ffffdc8b5fa9853..803f1354b6125a798dcc47290b9d16287ef226c5 100644 (file)
@@ -2,11 +2,19 @@
 
 =over 4
 
+=item B<Remove limit on the value of -ci=n when -xci is set>
+
+This update undoes the update c16c5ee of 20 Feb 2021, in which the value
+of -ci=n was limited to the value of -i=n when -xci was set.  Recent
+improvements in stability tolerances allow this limit to be removed.
+
+28 Jun 2021.
+
 =item B<Minor optimization>
 
 Added a quick check to bypass a needless sub call.
 
-26 Jan 2021.
+26 Jan 2021, e7822df.
 
 =item B<Eliminate token variable _LEVEL_TRUE_>
 
@@ -14,7 +22,7 @@ It was possible to eliminate this token variable by changing the order
 of welding operations. This reduces the number of variables per token
 from 12 to 11.
 
-26 Jun 2021.
+26 Jun 2021, 1f4f78c.
 
 =item B<Eliminate token variable _CONTAINER_ENVIRONMENT_>
 
@@ -23,7 +31,7 @@ effect on efficiency.  This update reduces the number of token variables from
 13 to 12, and also simplifies the coding.  It was possible to compute this
 variable from the others, so it was redundant.
 
-26 Jun 2021.
+26 Jun 2021, 300ca1e.
 
 =back