0
0
mirror of https://github.com/vim/vim.git synced 2025-10-22 08:34:29 -04:00

patch 9.0.0157: 'showbreak' displayed below truncated "after" text prop

Problem:    'showbreak' displayed below truncated "after" text prop.
Solution:   Suppress 'showbreak' when "after" prop doesn't wrap.
This commit is contained in:
Bram Moolenaar
2022-08-06 21:03:53 +01:00
parent 3f74c0ab32
commit cba6952e34
5 changed files with 46 additions and 3 deletions

View File

@@ -1722,7 +1722,7 @@ win_line(
// don't combine char attr after EOL
text_prop_flags &= ~PT_FLAG_COMBINE;
#ifdef FEAT_LINEBREAK
if (below || right)
if (below || right || !wrap)
{
// no 'showbreak' before "below" text property
// or after "right" text property