diff src/drawline.c @ 18131:851a014dfd8b v8.1.2060

patch 8.1.2060: "precedes" in 'listchars' not used properly Commit: https://github.com/vim/vim/commit/bffba7f7042f6082e75b42484b15f66087b01941 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 20 17:00:17 2019 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Fri, 20 Sep 2019 17:15:04 +0200
parents 2a806e3c39f6
children 1acc94f17906
line wrap: on
line diff
--- 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