Skip to content

Commit 32d0801

Browse files
authored
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.
1 parent 0e1b191 commit 32d0801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/polyglot/init.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3510,7 +3510,7 @@ au BufNewFile,BufRead .reminders* call s:StarSetf('remind')
35103510
au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog')
35113511

35123512
" Shell scripts ending in a star
3513-
au BufNewFile,BufRead .bashrc*,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,bash-fc[-.]*,,PKGBUILD* call polyglot#ft#SetFileTypeSH("bash")
3513+
au BufNewFile,BufRead .bashrc*,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,bash-fc[-.]*,PKGBUILD* call polyglot#ft#SetFileTypeSH("bash")
35143514
au BufNewFile,BufRead .kshrc* call polyglot#ft#SetFileTypeSH("ksh")
35153515
au BufNewFile,BufRead .profile* call polyglot#ft#SetFileTypeSH(getline(1))
35163516

0 commit comments

Comments
 (0)