> On Thu, Jan 20, 2022 at 8:39 PM Bram Moolenaar wrote:
>
> > Patch 8.2.4163
> > Problem: No error for omitting function name after autoload prefix.
> > Solution: Check for missing function name. (issue #9577)
> > Files: src/userfunc.c, src/testdir/test_vim9_import.vim
>
> This patch broke my configuration: vim-8.2.4162 was fine,
> but starting at vim-8.2.4163, I get errors like these when I start vim:
>
> ((HEAD detached at v8.2.4163))pel@pel-cirrus7:~/sb/vim/src$ ./vim
> Error detected while processing
> /home/pel/.vimrc[7]../home/pel/.vim/autoload/plug.vim:
> line 619:
> E129: Function name required
> line 620:
> E121: Undefined variable: a:0
> line 621:
> E133: :return not inside a function
> Error detected while processing
> /home/pel/.vimrc[7]../home/pel/.vim/autoload/plug.vim[636]../home/pel/.vimrc[7]../home/pel/.vim/autoload/plug.vim:
> line 635:
> E133: :return not inside a function
> Error detected while processing /home/pel/.vimrc:
> line 402:
> E185: Cannot find color scheme 'rastafari'
> Press ENTER or type command to continue
>
> The code in /home/pel/.vim/autoload/plug.vim:619 looks like this:
>
> 619 function! plug#(repo, ...)
> 620 if a:0 > 1
> 621 return s:err('Invalid number of arguments (1..2)')
> 622 endif
Hmm, so since it was possible to use an empty name, it was actually
used. Should have checked for that long ago. Oh well, then we'll have
to restrict it to Vim9 syntax.
--
TIM: But follow only if you are men of valour. For the entrance to this cave
is guarded by a monster, a creature so foul and cruel that no man yet has
fought with it and lived. Bones of full fifty men lie strewn about its
lair ...
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220121103430.D5A001C0202%40moolenaar.net.