diff options
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r-- | src/drawscreen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c index 5f531f2d00..da0cd13063 100644 --- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -1382,7 +1382,10 @@ fold_line( # ifdef FEAT_CONCEAL // When the line was not folded w_wrow may have been set, recompute it. - if (wp == curwin && lnum == wp->w_cursor.lnum && conceal_cursor_line(wp)) + if (wp == curwin + && wp->w_cursor.lnum >= lnum + && wp->w_cursor.lnum <= lnume + && conceal_cursor_line(wp)) curs_columns(TRUE); # endif } |