Skip to content

Commit

Permalink
Provide argument for bufnr
Browse files Browse the repository at this point in the history
Fix an error in vim 8.0:
E119: Not enough arguments for function: bufnr
  • Loading branch information
serpent7776 committed Jun 2, 2023
1 parent 2045211 commit e8e8106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/nerdcommenter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ function! nerdcommenter#SetUp() abort
endif
endfor
" if g:NERD_<filetype>_alt_style is defined, use the alternate style
let b:NERDCommenterFirstInit = getbufvar(bufnr(),'NERDCommenterFirstInit')
let b:NERDCommenterFirstInit = getbufvar(bufnr('%'),'NERDCommenterFirstInit')
if exists('g:NERDAltDelims_'.filetype) && eval('g:NERDAltDelims_'.filetype) && !b:NERDCommenterFirstInit
let b:NERDCommenterFirstInit = 1
call nerdcommenter#SwitchToAlternativeDelimiters(0)
Expand Down

0 comments on commit e8e8106

Please sign in to comment.