comparison src/userfunc.c @ 27563:a54064e14114 v8.2.4308

patch 8.2.4308: Vim9: cannot list autoload function Commit: https://github.com/vim/vim/commit/8164f6ea3cd675d0c22b058d71df2454fa108a35 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 6 13:08:41 2022 +0000 patch 8.2.4308: Vim9: cannot list autoload function Problem: Vim9: cannot list autoload function. Solution: Don't give an error for using # when listing a function. (closes #9703)
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Feb 2022 14:15:03 +0100
parents 14640c6fe1fe
children d504745607bc
comparison
equal deleted inserted replaced
27562:410c62760ac6 27563:a54064e14114
4230 { 4230 {
4231 vim_free(name); 4231 vim_free(name);
4232 name = prefixed; 4232 name = prefixed;
4233 } 4233 }
4234 } 4234 }
4235 else if (vim9script && name != NULL 4235 else if (paren && vim9script && name != NULL
4236 && vim_strchr(name, AUTOLOAD_CHAR) != NULL) 4236 && vim_strchr(name, AUTOLOAD_CHAR) != NULL)
4237 { 4237 {
4238 emsg(_(e_cannot_use_name_with_hash_in_vim9_script_use_export_instead)); 4238 emsg(_(e_cannot_use_name_with_hash_in_vim9_script_use_export_instead));
4239 goto ret_free; 4239 goto ret_free;
4240 } 4240 }