mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 03:28:33 +00:00
Fix "precedes" listchar behavior in wrap mode
Previously, the "precedes" character would be rendered on every row when w_skipcol > 0 (i.e., when viewing a single line longer than the entire screen), instead of just on the first row. Make sure to only render it on the first row in this case. Add a test for this behavior. Fix documentation for the "precedes" character, which erroneously stated that it was only active when wrap mode was off.
This commit is contained in:

committed by
Justin M. Keyes

parent
45447e3b64
commit
18e5869f56
@@ -3763,7 +3763,7 @@ win_line (
|
||||
*/
|
||||
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)
|
||||
&& filler_todo <= 0
|
||||
&& draw_state > WL_NR
|
||||
&& c != NUL) {
|
||||
|
Reference in New Issue
Block a user