Problem: Autoload tests fails.
Solution: Use export instead of name with #.
vim9script
-func auto9#getsome()
+export func Getsome()
return 'some'
endfunc
-def auto9#add42(count: number): number
+export def Add42(count: number): number
return count + 42
enddef
endfunc
func Test_autoload_vim9script()
- call assert_equal('some', auto9#getsome())
- call assert_equal(49, auto9#add42(7))
+ call assert_equal('some', auto9#Getsome())
+ call assert_equal(49, auto9#Add42(7))
endfunc
let lines =<< trim END
vim9script
- def omni#func(findstart: bool, base: string): any
+ export def Func(findstart: bool, base: string): any
if findstart
return 1
else
call writefile(lines, dir .. '/omni.vim')
new
- setlocal omnifunc=omni#func
+ setlocal omnifunc=omni#Func
call feedkeys("i\<C-X>\<C-O>\<Esc>", 'xt')
bwipe!
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4265,
/**/
4264,
/**/