#ifdef FEAT_LINEBREAK
int need_showbreak = FALSE; // overlong line, skipping first x
// chars
+ int dont_use_showbreak = FALSE; // do not use 'showbreak'
#endif
#if defined(FEAT_SIGNS) || defined(FEAT_QUICKFIX) \
|| defined(FEAT_SYN_HL) || defined(FEAT_DIFF)
if (*ptr == NUL)
// don't combine char attr after EOL
text_prop_flags &= ~PT_FLAG_COMBINE;
-
+#ifdef FEAT_LINEBREAK
+ if (below || right)
+ {
+ // no 'showbreak' before "below" text property
+ // or after "right" text property
+ need_showbreak = FALSE;
+ dont_use_showbreak = TRUE;
+ }
+#endif
// Keep in sync with where
// textprop_size_after_trunc() is called in
// win_lbr_chartabsize().
n_extra = 0;
lcs_prec_todo = wp->w_lcs_chars.prec;
#ifdef FEAT_LINEBREAK
+ if (!dont_use_showbreak
# ifdef FEAT_DIFF
- if (filler_todo <= 0)
+ && filler_todo <= 0
# endif
+ )
need_showbreak = TRUE;
#endif
#ifdef FEAT_DIFF
CheckRunVimInTerminal
let lines =<< trim END
+ set showbreak=+++
call setline(1, 'some text here and other text there')
call prop_type_add('rightprop', #{highlight: 'ErrorMsg'})
call prop_type_add('afterprop', #{highlight: 'Search'})