From db7bb8ba22f5798bf3abe9f786bc6e6d002725f8 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 18 Apr 2022 12:08:27 +0200 Subject: Update --- extras/filetype.vim | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'extras') diff --git a/extras/filetype.vim b/extras/filetype.vim index 391c2d49..f6cb13a1 100644 --- a/extras/filetype.vim +++ b/extras/filetype.vim @@ -2506,20 +2506,17 @@ endif " Function called for testing all functions defined here. These are " script-local, thus need to be executed here. " Returns a string with error messages (hopefully empty). -" Check if function exists first. See https://github.com/vim/vim/issues/9890 -if !exists("*TestFiletypeFuncs") - func! TestFiletypeFuncs(testlist) - let output = '' - for f in a:testlist - try - exe f - catch - let output = output . "\n" . f . ": " . v:exception - endtry - endfor - return output - endfunc -endif +func! TestFiletypeFuncs(testlist) + let output = '' + for f in a:testlist + try + exe f + catch + let output = output . "\n" . f . ": " . v:exception + endtry + endfor + return output +endfunc " Restore 'cpoptions' let &cpo = s:cpo_save -- cgit v1.2.3