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 -- [email protected] -- 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
