diff --git a/autoload/doge.vim b/autoload/doge.vim index 495b71a6..50d606d0 100644 --- a/autoload/doge.vim +++ b/autoload/doge.vim @@ -131,7 +131,8 @@ function! doge#generate(arg) abort let l:Indent = function('doge#indent#add', [l:comment_indent]) " Indent the comment. - let l:comment = map(l:comment, { line -> l:Indent(line) }) + " vint: next-line -ProhibitUnusedVariable + let l:comment = map(l:comment, { index, line -> l:Indent(line) }) " Write the comment. call append(l:comment_lnum_insert_position, l:comment)