Loading ...
Sorry, an error occurred while loading the content.

Re: ftplugin/changelog.vim

Expand Messages
  • Bram Moolenaar
    ... Nikolai maintains that file. ... -- hundred-and-one symptoms of being an internet addict: 232. You start conversations with, Have you gotten an ISDN
    Message 1 of 13 , Aug 11, 2012
    • 0 Attachment
      Sylvain Chouleur wrote:

      > there is a little syntax error in changelog ftplugin:
      > in the s:passwd_field function, field argument is not correctly used.
      >
      > Here is a patch.

      Nikolai maintains that file.

      > diff -r 9266cfe865c3 runtime/ftplugin/changelog.vim
      > --- a/runtime/ftplugin/changelog.vim Wed Aug 08 18:01:05 2012 +0200
      > +++ b/runtime/ftplugin/changelog.vim Fri Aug 10 11:55:11 2012 +0200
      > @@ -106,10 +106,10 @@
      >
      > function! s:passwd_field(line, field)
      > let fields = split(a:line, ':', 1)
      > - if len(fields) < field
      > + if len(fields) < a:field
      > return ""
      > endif
      > - return fields[field - 1]
      > + return fields[a:field - 1]
      > endfunction
      >
      > function! s:capitalize(word)
      >

      --
      hundred-and-one symptoms of being an internet addict:
      232. You start conversations with, "Have you gotten an ISDN line?"

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ 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
    Your message has been successfully submitted and would be delivered to recipients shortly.