mirror of
https://github.com/preservim/nerdcommenter.git
synced 2024-11-29 12:16:18 +08:00
only use g:NERDDefaultDelims if no filetype has been set
This commit is contained in:
parent
0c04654498
commit
4f3d9c0e12
|
@ -441,7 +441,7 @@ function s:SetUpForNewFiletype(filetype, forceReset)
|
|||
endfunction
|
||||
|
||||
function s:CreateDelimMapFromCms()
|
||||
if exists('g:NERDDefaultDelims')
|
||||
if &ft == '' && exists('g:NERDDefaultDelims')
|
||||
let delims = g:NERDDefaultDelims
|
||||
for i in ['left', 'leftAlt', 'right', 'rightAlt']
|
||||
if !has_key(delims, i)
|
||||
|
|
Loading…
Reference in New Issue
Block a user