mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-14 12:43:47 -05:00
remove a redundant if statement
This commit is contained in:
@@ -95,10 +95,7 @@ let s:NERDFileNameEscape="[]#*$%'\" ?`!&();<>\\"
|
|||||||
" Section: Comment enabler autocommands {{{2
|
" Section: Comment enabler autocommands {{{2
|
||||||
" ============================================================================
|
" ============================================================================
|
||||||
|
|
||||||
if !exists("nerd_autocmds_loaded")
|
augroup commentEnablers
|
||||||
let nerd_autocmds_loaded=1
|
|
||||||
|
|
||||||
augroup commentEnablers
|
|
||||||
|
|
||||||
"if the user enters a buffer or reads a buffer then we gotta set up
|
"if the user enters a buffer or reads a buffer then we gotta set up
|
||||||
"the comment delimiters for that new filetype
|
"the comment delimiters for that new filetype
|
||||||
@@ -107,9 +104,7 @@ if !exists("nerd_autocmds_loaded")
|
|||||||
"if the filetype of a buffer changes, force the script to reset the
|
"if the filetype of a buffer changes, force the script to reset the
|
||||||
"delims for the buffer
|
"delims for the buffer
|
||||||
autocmd Filetype * :call s:SetUpForNewFiletype(&filetype, 1)
|
autocmd Filetype * :call s:SetUpForNewFiletype(&filetype, 1)
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
" Function: s:SetUpForNewFiletype(filetype) function {{{2
|
" Function: s:SetUpForNewFiletype(filetype) function {{{2
|
||||||
|
|||||||
Reference in New Issue
Block a user