Skip to content

Commit 1d3d9d5

Browse files
committed
Set commentstring only locally
1 parent 57f6643 commit 1d3d9d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/context-commentstring.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function! s:UpdateCommentString()
2929
if !empty(stack)
3030
for name in map(stack, 'synIDattr(v:val, "name")')
3131
if has_key(g:context#commentstring#table[&filetype], name)
32-
let &commentstring = g:context#commentstring#table[&filetype][name]
32+
let &l:commentstring = g:context#commentstring#table[&filetype][name]
3333
return
3434
endif
3535
endfor

0 commit comments

Comments
 (0)