summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
authorh-east <h.east.727@gmail.com>2023-03-02 18:49:09 +0000
committerBram Moolenaar <Bram@vim.org>2023-03-02 18:49:09 +0000
commit194555c001f2b8576483ef34511450b6e9b5e3fd (patch)
tree47cada172948f112665c54bd0b3e056ca831c911 /src/drawline.c
parentdb1887ce40452daea8c4e8734ec64202e5f24130 (diff)
patch 9.0.1373: wrong text displayed when using both 'linebreak' and 'list'v9.0.1373
Problem: Wrong text displayed when using both 'linebreak' and 'list'. Solution: Only set "c_extra" to NUL when "p_extra" is not empty. (Hirohito Higashi, closes #12065)
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c
index 5fe25f554f..5c647507d8 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -3095,7 +3095,8 @@ win_line(
? wp->w_lcs_chars.tab3
: wp->w_lcs_chars.tab1;
#ifdef FEAT_LINEBREAK
- if (wp->w_p_lbr && wlv.p_extra != NULL)
+ if (wp->w_p_lbr && wlv.p_extra != NULL
+ && *wlv.p_extra != NUL)
wlv.c_extra = NUL; // using p_extra from above
else
#endif