Skip to content

Commit

Permalink
Prevent caching of buffer commentstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Apr 20, 2023
1 parent bd1a295 commit a3e8285
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions autoload/nerdcommenter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,6 @@ endif
" This function is responsible for setting up buffer scoped variables for the
" current buffer.
function! nerdcommenter#SetUp() abort
if exists('b:NERDCommenterDelims')
return
endif

let filetype = &filetype

"for compound filetypes, if we don't know how to handle the full filetype
Expand Down Expand Up @@ -496,8 +492,8 @@ function! nerdcommenter#SetUp() abort
" if g:NERD_<filetype>_alt_style is defined, use the alternate style
let b:NERDCommenterFirstInit = getbufvar(1,'NERDCommenterFirstInit')
if exists('g:NERDAltDelims_'.filetype) && eval('g:NERDAltDelims_'.filetype) && !b:NERDCommenterFirstInit
call nerdcommenter#SwitchToAlternativeDelimiters(0)
let b:NERDCommenterFirstInit = 1
call nerdcommenter#SwitchToAlternativeDelimiters(0)
endif
else
let b:NERDCommenterDelims = s:CreateDelimMapFromCms()
Expand Down

0 comments on commit a3e8285

Please sign in to comment.