Patch 8.2.3090
Problem:    With concealing enabled and indirectly closing a fold the cursor
            may be somewhere in a folded line.
Solution:   Recompute the cursor position when the cursor line can be
            concealed. (closes #8480)
Files:      src/drawscreen.c


*** ../vim-8.2.3089/src/drawscreen.c    2021-07-03 15:08:19.341195138 +0200
--- src/drawscreen.c    2021-07-03 18:01:03.644682017 +0200
***************
*** 1379,1384 ****
--- 1379,1390 ----
        curwin->w_cline_folded = TRUE;
        curwin->w_valid |= (VALID_CHEIGHT|VALID_CROW);
      }
+ 
+ # 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
  }
  #endif
  
*** ../vim-8.2.3089/src/version.c       2021-07-03 16:33:12.513916467 +0200
--- src/version.c       2021-07-03 18:03:53.872397454 +0200
***************
*** 757,758 ****
--- 757,760 ----
  {   /* Add new patch number below this line */
+ /**/
+     3090,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
85. Choice between paying Compuserve bill and paying for kids education
    is a no brainer -- although a bit painful for your kids.

 /// 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/202107031604.163G4nuF2295312%40masaka.moolenaar.net.

Raspunde prin e-mail lui