diff options
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/polyglot.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/polyglot.vim b/autoload/polyglot.vim index b995d228..393c92bf 100644 --- a/autoload/polyglot.vim +++ b/autoload/polyglot.vim @@ -405,7 +405,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> @@ -499,7 +499,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 |