I've attached the patch.

As a reminder: it makes folded lines more readable by doing some aligning.

Regards,
Chip Campbell

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
*** eval.c.orig 2016-01-04 12:14:14.880933518 -0500
--- eval.c      2016-01-04 12:15:38.104291332 -0500
***************
*** 11371,11376 ****
--- 11371,11380 ----
      char_u    *r;
      int               len;
      char      *txt;
+     char        fmt[40];
+     int         nuw;
+     int         padding;
+     unsigned    rlen;
  #endif
  
      rettv->v_type = VAR_STRING;
***************
*** 11404,11419 ****
                    s = skipwhite(s + 1);
            }
        }
!       txt = _("+-%s%3ld lines: ");
!       r = alloc((unsigned)(STRLEN(txt)
!                   + STRLEN(vimvars[VV_FOLDDASHES].vv_str)    /* for %s */
!                   + 20                                    /* for %3ld */
!                   + STRLEN(s)));                          /* concatenated */
        if (r != NULL)
        {
            sprintf((char *)r, txt, vimvars[VV_FOLDDASHES].vv_str,
                    (long)((linenr_T)vimvars[VV_FOLDEND].vv_nr
!                               - (linenr_T)vimvars[VV_FOLDSTART].vv_nr + 1));
            len = (int)STRLEN(r);
            STRCAT(r, s);
            /* remove 'foldmarker' and 'commentstring' */
--- 11408,11429 ----
                    s = skipwhite(s + 1);
            }
        }
!       /* next two lines construct a format to be used for the folded region.
!        * Example: assume nuw=5, then fmt becomes "+-%-5s%5ld lines: %*s"
!        */
!       nuw    = number_width(curwin);  /* obtain log10(lastline) */
!       padding= STRLEN(vimvars[VV_FOLDDASHES].vv_str);
!       sprintf(fmt,"+-%%-%ds%%%dld lines:%%*s",(padding > nuw)? padding : 
nuw,nuw);
!       txt = _(fmt);                   /* internationalize       */
!       rlen= (STRLEN(txt) - 11) + 2*nuw + ((padding > nuw)? padding : nuw) + 
STRLEN(s) + 10;
!       r   = alloc(rlen);
        if (r != NULL)
        {
+           if(padding > nuw) padding= nuw;
            sprintf((char *)r, txt, vimvars[VV_FOLDDASHES].vv_str,
                    (long)((linenr_T)vimvars[VV_FOLDEND].vv_nr
!                               - (linenr_T)vimvars[VV_FOLDSTART].vv_nr + 1),
!                   padding," ");
            len = (int)STRLEN(r);
            STRCAT(r, s);
            /* remove 'foldmarker' and 'commentstring' */

Raspunde prin e-mail lui