summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-28 21:20:16 +0200
committerChristian Brabandt <cb@256bit.org>2023-08-28 21:21:46 +0200
commit1d3e0e8f3110a7807431eae056914ccea57b057b (patch)
tree9645ae44d0b927957ea7b0dcf9804bb497fb3e03 /src/drawline.c
parent93ebb5e75e564403624314c84c97293427d001d6 (diff)
patch 9.0.1813: linebreak incorrect drawn with breakindentv9.0.1813
Problem: 'linebreak' is incorrectly drawn after 'breakindent'. Solution: Don't include 'breakindent' size when already after it. closes: #12937 closes: #12940 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/drawline.c b/src/drawline.c
index 5b5fbf2383..63bc96c4da 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -2887,14 +2887,6 @@ win_line(
wlv.n_extra = win_lbr_chartabsize(&cts, NULL) - 1;
clear_chartabsize_arg(&cts);
- // We have just drawn the showbreak value, no need to add
- // space for it again.
- if (wlv.vcol == wlv.vcol_sbr)
- {
- wlv.n_extra -= MB_CHARLEN(get_showbreak_value(wp));
- if (wlv.n_extra < 0)
- wlv.n_extra = 0;
- }
if (on_last_col && c != TAB)
// Do not continue search/match highlighting over the
// line break, but for TABs the highlighting should