diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-04 19:00:16 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-04 19:00:16 +0200 | 
| commit | d221139bd70fd474be52237dc8e6440e6da632bd (patch) | |
| tree | 5b94fd6f5ffed4225d6540cb81705f7c319f4818 /autoload | |
| parent | 073e4d44beb431e3846992d9145719d90d626a42 (diff) | |
| download | vim-polyglot-d221139bd70fd474be52237dc8e6440e6da632bd.tar.gz vim-polyglot-d221139bd70fd474be52237dc8e6440e6da632bd.zip | |
Address BufWritePost error, fixes #573
Diffstat (limited to '')
| -rw-r--r-- | autoload/polyglot/detect.vim | 20 | 
1 files changed, 4 insertions, 16 deletions
| diff --git a/autoload/polyglot/detect.vim b/autoload/polyglot/detect.vim index b630712d..85b9cd6a 100644 --- a/autoload/polyglot/detect.vim +++ b/autoload/polyglot/detect.vim @@ -2,10 +2,6 @@  let s:cpo_save = &cpo  set cpo&vim -func! s:WritePostOnce(fn) -  exe 'au! filetypedetect BufWritePost <buffer> au! filetypedetect BufWritePost <buffer> | ' . a:fn -endfunc -  " DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE  func! polyglot#detect#Inp() @@ -193,9 +189,7 @@ func! polyglot#detect#Pm()      let &ft = g:filetype_pm | return    endif    if polyglot#shebang#Detect() | return | endif -  setf perl -  call s:WritePostOnce('call polyglot#detect#Pm()') -  return +  set ft=perl | return  endfunc  func! polyglot#detect#Pl() @@ -216,9 +210,7 @@ func! polyglot#detect#Pl()      let &ft = g:filetype_pl | return    endif    if polyglot#shebang#Detect() | return | endif -  setf perl -  call s:WritePostOnce('call polyglot#detect#Pl()') -  return +  set ft=perl | return  endfunc  func! polyglot#detect#T() @@ -241,9 +233,7 @@ func! polyglot#detect#T()      let &ft = g:filetype_t | return    endif    if polyglot#shebang#Detect() | return | endif -  setf perl -  call s:WritePostOnce('call polyglot#detect#T()') -  return +  set ft=perl | return  endfunc  func! polyglot#detect#Tt2() @@ -270,9 +260,7 @@ func! polyglot#detect#Html()        set ft=xhtml | return      endif    endfor -  setf html -  call s:WritePostOnce('call polyglot#detect#Html()') -  return +  set ft=html | return  endfunc  " DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE | 
