diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-20 17:00:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-20 17:00:17 +0200 |
commit | bffba7f7042f6082e75b42484b15f66087b01941 (patch) | |
tree | 3fcb97d519845afa946d27dbd41b03456a2d33c8 /src/drawline.c | |
parent | 589edb340454e7f1b19358f129287a636d53d0e1 (diff) | |
download | vim-git-bffba7f7042f6082e75b42484b15f66087b01941.tar.gz |
patch 8.1.2060: "precedes" in 'listchars' not used properlyv8.1.2060
Problem: "precedes" in 'listchars' not used properly.
Solution: Correctly handle the "precedes" char in list mode for long lines.
(Christian Brabandt, closes #4953)
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c index 39ec5ed40..5916458be 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -2482,7 +2482,9 @@ win_line( // 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 |