Skip to content

Commit

Permalink
Correct use of b:NERDCommenterFirstInit
Browse files Browse the repository at this point in the history
fix #518
  • Loading branch information
ppwwyyxx authored May 8, 2023
1 parent 1fe9e1c commit 7e54590
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 @@ -491,7 +491,7 @@ function! nerdcommenter#SetUp() abort
endif
endfor
" if g:NERD_<filetype>_alt_style is defined, use the alternate style
let b:NERDCommenterFirstInit = getbufvar(1,'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 7e54590

Please sign in to comment.