diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-21 20:29:15 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-21 22:13:55 -0700 |
commit | 16549324988be0717b59f7e5fec818ee9ad70f52 (patch) | |
tree | 228dc1a75cc165895eed875cf9f03ef0851671cc /src/nvim/screen.c | |
parent | 18e5869f56aab8a52d84185e5bd043799c36ae2d (diff) | |
download | rneovim-16549324988be0717b59f7e5fec818ee9ad70f52.tar.gz rneovim-16549324988be0717b59f7e5fec818ee9ad70f52.tar.bz2 rneovim-16549324988be0717b59f7e5fec818ee9ad70f52.zip |
vim-patch:8.1.2060: "precedes" in 'listchars' not used properly
(Credit: Zach Wegner, https://github.com/neovim/neovim/pull/11034)
Problem: "precedes" in 'listchars' not used properly.
Solution: Correctly handle the "precedes" char in list mode for long lines.
https://github.com/vim/vim/commit/bffba7f7042f6082e75b42484b15f66087b01941
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index f107985df7..a866901b78 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -3756,11 +3756,9 @@ win_line ( char_attr = hl_combine_attr(char_attr, extra_attr); } - /* - * Handle the case where we are in column 0 but not on the first - * character of the line and the user wants us to show us a - * special character (via 'listchars' option "precedes:<char>". - */ + // Handle the case where we are in column 0 but not on the first + // character of the line and the user wants us to show us a + // special character (via 'listchars' option "precedes:<char>". if (lcs_prec_todo != NUL && wp->w_p_list && (wp->w_p_wrap ? (wp->w_skipcol > 0 && row == 0) : wp->w_leftcol > 0) |