Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion autoload/nerdcommenter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,10 @@ function! nerdcommenter#SetUp() abort

if has_key(s:delimiterMap, filetype)
let b:NERDCommenterDelims = copy(s:delimiterMap[filetype])
if has_key(b:NERDCommenterDelims, 'marker')
let b:NERDSexyComMarker = b:NERDCommenterDelims['marker']
let b:NERDSexyComMarkerSet = 1
endif
for i in ['left', 'leftAlt', 'right', 'rightAlt']
if !has_key(b:NERDCommenterDelims, i)
let b:NERDCommenterDelims[i] = ''
Expand Down Expand Up @@ -2242,7 +2246,7 @@ function! s:GetSexyComMarker(space, esc) abort
let sexyComMarker = b:NERDSexyComMarker

"if there is no hardcoded marker then we find one
if sexyComMarker ==# ''
if b:NERDSexyComMarkerSet == 0 && sexyComMarker ==# ''

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look like this buffer value is getting set unconditionally, so this will error in the event it is not set ... no?


"if the filetype has c style comments then use standard c sexy
"comments
Expand Down