From 32d08013a68efb59f0800f398dbfc64237346f35 Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Mon, 18 Apr 2022 06:03:43 -0400 Subject: 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. --- autoload/polyglot/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload') 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)) -- cgit v1.2.3