Patch 8.2.4308

5 views
Skip to first unread message

Bram Moolenaar

unread,
Feb 6, 2022, 8:12:16 AM2/6/22
to vim...@googlegroups.com

Patch 8.2.4308
Problem: Vim9: cannot list autoload function.
Solution: Don't give an error for using # when listing a function.
(closes #9703)
Files: src/userfunc.c, src/testdir/test_vim9_import.vim


*** ../vim-8.2.4307/src/userfunc.c 2022-01-31 11:44:44.409529899 +0000
--- src/userfunc.c 2022-02-06 12:47:32.524686129 +0000
***************
*** 4232,4238 ****
name = prefixed;
}
}
! else if (vim9script && name != NULL
&& vim_strchr(name, AUTOLOAD_CHAR) != NULL)
{
emsg(_(e_cannot_use_name_with_hash_in_vim9_script_use_export_instead));
--- 4232,4238 ----
name = prefixed;
}
}
! else if (paren && vim9script && name != NULL
&& vim_strchr(name, AUTOLOAD_CHAR) != NULL)
{
emsg(_(e_cannot_use_name_with_hash_in_vim9_script_use_export_instead));
*** ../vim-8.2.4307/src/testdir/test_vim9_import.vim 2022-01-31 18:59:09.840105788 +0000
--- src/testdir/test_vim9_import.vim 2022-02-06 12:48:07.528596149 +0000
***************
*** 1886,1891 ****
--- 1886,1895 ----
assert_equal('other', g:result)

assert_equal('arg', call('another.RetArg', ['arg']))
+
+ verbose function another.Getother
+ # should we disallow this?
+ verbose function another#Getother
END
v9.CheckScriptSuccess(lines)

*** ../vim-8.2.4307/src/version.c 2022-02-06 11:41:52.986808574 +0000
--- src/version.c 2022-02-06 12:47:10.924741669 +0000
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 4308,
/**/

--
The Feynman problem solving Algorithm:
1) Write down the problem
2) Think real hard
3) Write down the answer

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages