Fix use on VIM 8 with proper arguments to bufnr() (#521)

This commit is contained in:
Krzysztof Leśniak
2023-06-05 10:34:33 +02:00
committed by GitHub
parent 2045211689
commit b0b09ea46c

View File

@@ -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)