fix(marks): mark winline as invalid if change is in a concealed line (#32766)

Code that checks whether a `w_lines` entry has become invalid due to
a change in a folded line should now also check for concealed lines.
This commit is contained in:
luukvbaal
2025-03-07 16:21:20 +01:00
committed by GitHub
parent b31132f1c1
commit 8da59060c6
3 changed files with 25 additions and 4 deletions

View File

@@ -810,8 +810,8 @@ struct tabpage_S {
typedef struct {
linenr_T wl_lnum; // buffer line number for logical line
uint16_t wl_size; // height in screen lines
char wl_valid; // true values are valid for text in buffer
char wl_folded; // true when this is a range of folded lines
bool wl_valid; // true values are valid for text in buffer
bool wl_folded; // true when this is a range of folded lines
linenr_T wl_foldend; // last buffer line number for folded line
linenr_T wl_lastlnum; // last buffer line number for logical line
} wline_T;