diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-12-05 15:47:09 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-12-05 15:49:47 +0100 |
commit | 588f20decebebedba3ad733f4f443a597e9747c3 (patch) | |
tree | aa29da0cf6e21746dc25a6854d657441a6f3fb18 /src/drawline.c | |
parent | 2103a56eab5a935f3c14c6e0b1610ff16fc8678f (diff) |
patch 9.0.2151: 'breakindent' is not drawn after diff filler linesv9.0.2151
Problem: 'breakindent' is not drawn after diff filler lines.
Solution: Correct check for whether 'breakindent' should be drawn.
closes: #13624
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drawline.c b/src/drawline.c index 6909e0f1fd..9f385f033a 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -498,10 +498,11 @@ handle_breakindent(win_T *wp, winlinevars_T *wlv) { wlv->draw_state = WL_BRI; // if wlv->need_showbreak is set, breakindent also applies - if (wp->w_p_bri && (wlv->row != wlv->startrow || wlv->need_showbreak) + if (wp->w_p_bri && (wlv->row > wlv->startrow # ifdef FEAT_DIFF - && wlv->filler_lines == 0 + + wlv->filler_lines # endif + || wlv->need_showbreak) # ifdef FEAT_PROP_POPUP && !wlv->dont_use_showbreak # endif |