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 --- ftdetect/polyglot.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftdetect') 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 @@ -2035,7 +2035,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