Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
18130:1e5672da6a69 | 18131:851a014dfd8b |
---|---|
2480 // Handle the case where we are in column 0 but not on the first | 2480 // Handle the case where we are in column 0 but not on the first |
2481 // character of the line and the user wants us to show us a | 2481 // character of the line and the user wants us to show us a |
2482 // special character (via 'listchars' option "precedes:<char>". | 2482 // special character (via 'listchars' option "precedes:<char>". |
2483 if (lcs_prec_todo != NUL | 2483 if (lcs_prec_todo != NUL |
2484 && wp->w_p_list | 2484 && wp->w_p_list |
2485 && (wp->w_p_wrap ? wp->w_skipcol > 0 : wp->w_leftcol > 0) | 2485 && (wp->w_p_wrap ? |
2486 (wp->w_skipcol > 0 && row == 0) : | |
2487 wp->w_leftcol > 0) | |
2486 #ifdef FEAT_DIFF | 2488 #ifdef FEAT_DIFF |
2487 && filler_todo <= 0 | 2489 && filler_todo <= 0 |
2488 #endif | 2490 #endif |
2489 && draw_state > WL_NR | 2491 && draw_state > WL_NR |
2490 && c != NUL) | 2492 && c != NUL) |