Hi,
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.
Regards,
Sylvain
--
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
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)