1
0
forked from aniani/vim

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 <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-03-28 10:04:25 +01:00
committed by Christian Brabandt
parent b2e1fee72c
commit 5532d3b3f0
2 changed files with 3 additions and 1 deletions

View 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;