Patch 9.0.0680
Problem:    Tests failing with 'breakindent', 'number' and "n" in 'cpo'.
Solution:   Do count the number column in topline if 'breakindent' is set.
Files:      src/drawline.c


*** ../vim-9.0.0679/src/drawline.c      2022-10-06 20:18:11.676609993 +0100
--- src/drawline.c      2022-10-06 20:44:06.388563865 +0100
***************
*** 346,352 ****
  
      if ((wp->w_p_nu || wp->w_p_rnu)
             && (wlv->row == wlv->startrow + wlv->filler_lines || !has_cpo_n)
!            && !(has_cpo_n && wp->w_skipcol > 0 && wlv->lnum == wp->w_topline))
      {
  #ifdef FEAT_SIGNS
        // If 'signcolumn' is set to 'number' and a sign is present
--- 346,358 ----
  
      if ((wp->w_p_nu || wp->w_p_rnu)
             && (wlv->row == wlv->startrow + wlv->filler_lines || !has_cpo_n)
!            // there is no line number in a wrapped line when "n" is in
!            // 'cpoptions', but 'breakindent' assumes it anyway.
!            && !((has_cpo_n
! #ifdef FEAT_LINEBREAK
!                    && !wp->w_p_bri
! #endif
!                 ) && wp->w_skipcol > 0 && wlv->lnum == wp->w_topline))
      {
  #ifdef FEAT_SIGNS
        // If 'signcolumn' is set to 'number' and a sign is present
*** ../vim-9.0.0679/src/version.c       2022-10-06 20:18:11.676609993 +0100
--- src/version.c       2022-10-06 20:46:29.056442603 +0100
***************
*** 701,702 ****
--- 701,704 ----
  {   /* Add new patch number below this line */
+ /**/
+     680,
  /**/

-- 
DINGO: Wicked wicked Zoot ... she is a bad person and she must pay the
       penalty.  And here in Castle Anthrax, we have but one punishment
       ... you must tie her down on a bed ... and spank her.  Come!
GIRLS: A spanking!  A spanking!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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/20221006194845.761771C0C31%40moolenaar.net.

Raspunde prin e-mail lui