From 5532d3b3f0c73d4e0fa07122ebbed3bf201870f9 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 28 Mar 2024 10:04:25 +0100 Subject: patch 9.1.0214: Duplicate condition in win_lbr_chartabsize() 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 Signed-off-by: Christian Brabandt --- src/charset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/charset.c') diff --git a/src/charset.c b/src/charset.c index c9584a90f7..470698f0e0 100644 --- a/src/charset.c +++ b/src/charset.c @@ -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; -- cgit v1.2.3