mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 02:46:31 +00:00
fix(display): adjust setting winline info for concealed lines (#33717)
Problem: Wrong winline info after partial redraw. Setting `conceal_cursor_used` is unnecessarily spread out. Solution: Rather than adjusting `wl_lastlnum` for the previous winline, adjust it when setting the current winline. Set `conceal_cursor_used` when the current window is redrawn.
This commit is contained in:
@@ -2826,7 +2826,6 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, int col_rows, b
|
||||
curwin->w_cline_height = wlv.row - startrow;
|
||||
curwin->w_cline_folded = has_fold;
|
||||
curwin->w_valid |= (VALID_CHEIGHT|VALID_CROW);
|
||||
conceal_cursor_used = conceal_cursor_line(curwin);
|
||||
}
|
||||
|
||||
break;
|
||||
|
Reference in New Issue
Block a user