patch 8.1.2060: "precedes" in 'listchars' not used properly
Problem: "precedes" in 'listchars' not used properly.
Solution: Correctly handle the "precedes" char in list mode for long lines.
(Christian Brabandt, closes #4953)
diff --git a/src/drawline.c b/src/drawline.c
index 39ec5ed..5916458 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -2482,7 +2482,9 @@
// special character (via 'listchars' option "precedes:<char>".
if (lcs_prec_todo != NUL
&& wp->w_p_list
- && (wp->w_p_wrap ? wp->w_skipcol > 0 : wp->w_leftcol > 0)
+ && (wp->w_p_wrap ?
+ (wp->w_skipcol > 0 && row == 0) :
+ wp->w_leftcol > 0)
#ifdef FEAT_DIFF
&& filler_todo <= 0
#endif