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:
luukvbaal
2025-05-01 09:51:51 +02:00
committed by GitHub
parent edc8e9f40a
commit 97a6259442
4 changed files with 43 additions and 40 deletions

View File

@@ -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;