From 33b86476b63f7fc2286336eb488a149a85cb08cb Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 26 Sep 2020 01:23:08 +0200 Subject: Fix neovim warning, closes #563 --- autoload/polyglot.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload') 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 @@ -499,7 +499,7 @@ au! BufNewFile,BufRead,StdinReadPost * if expand("") !~ g:ft_ignore_pat | \ call polyglot#Shebang() | endif au BufEnter * if &ft == "" && expand("") !~ g:ft_ignore_pat | - \ call polyglot#Observe('Shebang') | endif + \ call s:Observe('Shebang') | endif augroup END -- cgit v1.2.3