diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-26 01:23:08 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-26 01:25:12 +0200 |
commit | 33b86476b63f7fc2286336eb488a149a85cb08cb (patch) | |
tree | b9dcf93e1e646df7e65e0de773f78c5e0b00120b /ftdetect | |
parent | 4f36a638131a2d08929f3cf22df243c22bddf3fe (diff) | |
download | vim-polyglot-33b86476b63f7fc2286336eb488a149a85cb08cb.tar.gz vim-polyglot-33b86476b63f7fc2286336eb488a149a85cb08cb.zip |
Fix neovim warning, closes #563
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 |