summaryrefslogtreecommitdiffstats
path: root/polyglot.vim
diff options
context:
space:
mode:
Diffstat (limited to 'polyglot.vim')
-rw-r--r--polyglot.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/polyglot.vim b/polyglot.vim
index 3ac6ef38..b6198b80 100644
--- a/polyglot.vim
+++ b/polyglot.vim
@@ -77,7 +77,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>
@@ -171,7 +171,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