diff options
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index ff17e516..9c517e03 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -9,7 +9,7 @@ if exists('g:polyglot_test') autocmd! endif -func! polyglot#Observe(fn) +func! s:Observe(fn) let b:polyglot_observe = a:fn augroup polyglot-observer au! CursorHold,CursorHoldI,BufWritePost <buffer> @@ -2035,7 +2035,7 @@ au! BufNewFile,BufRead,StdinReadPost * if expand("<afile>") !~ g:ft_ignore_pat | \ call polyglot#Shebang() | endif au BufEnter * if &ft == "" && expand("<afile>") !~ g:ft_ignore_pat | - \ call polyglot#Observe('Shebang') | endif + \ call s:Observe('Shebang') | endif augroup END |