summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Meyer <me@entrez.cc>2022-04-18 06:03:43 -0400
committerGitHub <noreply@github.com>2022-04-18 12:03:43 +0200
commit32d08013a68efb59f0800f398dbfc64237346f35 (patch)
treee53ca24849207a5562c83f6fcef001b2b65e248e
parent0e1b19120995c5ba488cbe16a5281a1bf4af3aab (diff)
downloadvim-polyglot-32d08013a68efb59f0800f398dbfc64237346f35.tar.gz
vim-polyglot-32d08013a68efb59f0800f398dbfc64237346f35.zip
Fix doubled comma in autocmd (#791)
The doubled comma (,,) in the list of autocmd patterns introduces a blank pattern which matches all filenames in the most recent version of neovim, causing the default filetype to be sh unless another rule overrides it.
-rw-r--r--autoload/polyglot/init.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/polyglot/init.vim b/autoload/polyglot/init.vim
index edf1f2bc..3d226bb3 100644
--- a/autoload/polyglot/init.vim
+++ b/autoload/polyglot/init.vim
@@ -3510,7 +3510,7 @@ au BufNewFile,BufRead .reminders* call s:StarSetf('remind')
au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog')
" Shell scripts ending in a star
-au BufNewFile,BufRead .bashrc*,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,bash-fc[-.]*,,PKGBUILD* call polyglot#ft#SetFileTypeSH("bash")
+au BufNewFile,BufRead .bashrc*,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,bash-fc[-.]*,PKGBUILD* call polyglot#ft#SetFileTypeSH("bash")
au BufNewFile,BufRead .kshrc* call polyglot#ft#SetFileTypeSH("ksh")
au BufNewFile,BufRead .profile* call polyglot#ft#SetFileTypeSH(getline(1))