mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 20:38:18 +00:00
screen.c: fix an issue with wrap and folds
Before this commit, a folded line would display a trailing character with bin/nvim -u ~/test.vim --cmd "hi NonText ctermbg=3" --cmd "hi Search ctermbg=2" --cmd "set listchars+=extends:X nowrap list" ~/test.txt
This commit is contained in:
@@ -4050,6 +4050,7 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow,
|
|||||||
&& !wp->w_p_wrap
|
&& !wp->w_p_wrap
|
||||||
&& filler_todo <= 0
|
&& filler_todo <= 0
|
||||||
&& (wp->w_p_rl ? col == 0 : col == grid->Columns - 1)
|
&& (wp->w_p_rl ? col == 0 : col == grid->Columns - 1)
|
||||||
|
&& !has_fold
|
||||||
&& (*ptr != NUL
|
&& (*ptr != NUL
|
||||||
|| lcs_eol_one > 0
|
|| lcs_eol_one > 0
|
||||||
|| (n_extra && (c_extra != NUL || *p_extra != NUL)))) {
|
|| (n_extra && (c_extra != NUL || *p_extra != NUL)))) {
|
||||||
|
Reference in New Issue
Block a user