diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-02 21:55:00 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-09-02 21:55:00 +0200 |
commit | 3c3cf1d6892103a1ce6bab7f3546447d85fb5d1c (patch) | |
tree | 59f1075c4be0be2b967213728c7bd225b2d0efb4 /src/drawline.c | |
parent | 32f3461465a26192172734584c4cbab6e55e2b7f (diff) |
patch 9.0.1851: breakindent missing by virt textv9.0.1851
Problem: Virtual text at a column causes 'breakindent' and 'showbreak'
to be missing (after patch 9.0.1124).
Solution: Add check for "tp_col" in another place where TP_FLAG_WRAP is
checked.
closes: #12769
closes: #13008
closes: #13010
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c index edcf55cf3f..04e7ed8d5f 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -2112,7 +2112,8 @@ win_line( & TP_FLAG_ALIGN_RIGHT); int below = (tp->tp_flags & TP_FLAG_ALIGN_BELOW); - int wrap = (tp->tp_flags & TP_FLAG_WRAP); + int wrap = tp->tp_col < MAXCOL + || (tp->tp_flags & TP_FLAG_WRAP); int padding = tp->tp_col == MAXCOL && tp->tp_len > 1 ? tp->tp_len - 1 : 0; |