Patch 8.2.3112 (after 8.2.3090)
Problem: With concealing enabled and indirectly closing a fold the cursor
may be somewhere in a folded line when it is not on the first line
of the fold.
Solution: Check if he cursor is somewhere in the folded text.
Files: src/drawscreen.c
*** ../vim-8.2.3111/src/drawscreen.c 2021-07-03 22:14:57.886777493 +0200
--- src/drawscreen.c 2021-07-05 21:59:02.712621416 +0200
***************
*** 1382,1388 ****
# 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))
curs_columns(TRUE);
# endif
}
--- 1382,1391 ----
# ifdef FEAT_CONCEAL
// When the line was not folded w_wrow may have been set, recompute it.
! if (wp == curwin
! && wp->w_cursor.lnum >= lnum
! && wp->w_cursor.lnum <= lnume
! && conceal_cursor_line(wp))
curs_columns(TRUE);
# endif
}
*** ../vim-8.2.3111/src/version.c 2021-07-05 21:41:44.782616398 +0200
--- src/version.c 2021-07-05 22:02:12.452259468 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3112,
/**/
--
From "know your smileys":
%-) After staring at screen for 15 hours
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///