]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0214: Duplicate condition in win_lbr_chartabsize() v9.1.0214
authorzeertzjq <zeertzjq@outlook.com>
Thu, 28 Mar 2024 09:04:25 +0000 (10:04 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 28 Mar 2024 09:04:25 +0000 (10:04 +0100)
Problem:  Duplicate condition in win_lbr_chartabsize().
Solution: Remove the duplicate condition, as it's already checked above.
          (zeertzjq)

closes: #14320

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/charset.c
src/version.c

index c9584a90f73f2f99aca4c8ba8069119a94e963e3..470698f0e037c817a0f512a4ff03ed05e6beda4d 100644 (file)
@@ -1357,7 +1357,7 @@ win_lbr_chartabsize(
                    cts->cts_bri_size = get_breakindent_win(wp, line);
                head_mid += cts->cts_bri_size;
            }
-           if (head_mid > 0 && wcol + size > wp->w_width)
+           if (head_mid > 0)
            {
                // Calculate effective window width.
                int prev_rem = wp->w_width - wcol;
index 5383d5151491d935e791db9f0542d5a320a078d1..e8b478d956a7b23528c203f09d8949152305bebb 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    214,
 /**/
     213,
 /**/