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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202107052003.165K3ZXT2893175%40masaka.moolenaar.net.

Raspunde prin e-mail lui