comparison src/testdir/test_ins_complete.vim @ 27474:307341b9c227 v8.2.4265

patch 8.2.4265: autoload tests fails Commit: https://github.com/vim/vim/commit/6a058070924928f1b2bdb11f345229074904d8bd Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 30 18:56:35 2022 +0000 patch 8.2.4265: autoload tests fails Problem: Autoload tests fails. Solution: Use export instead of name with #.
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 Jan 2022 20:00:04 +0100
parents a14c4d3e3260
children 19367412787c
comparison
equal deleted inserted replaced
27473:1e7b91cb3bb4 27474:307341b9c227
146 let dir = 'Xruntime/some/autoload' 146 let dir = 'Xruntime/some/autoload'
147 call mkdir(dir, 'p') 147 call mkdir(dir, 'p')
148 148
149 let lines =<< trim END 149 let lines =<< trim END
150 vim9script 150 vim9script
151 def omni#func(findstart: bool, base: string): any 151 export def Func(findstart: bool, base: string): any
152 if findstart 152 if findstart
153 return 1 153 return 1
154 else 154 else
155 return ['match'] 155 return ['match']
156 endif 156 endif
160 } 160 }
161 END 161 END
162 call writefile(lines, dir .. '/omni.vim') 162 call writefile(lines, dir .. '/omni.vim')
163 163
164 new 164 new
165 setlocal omnifunc=omni#func 165 setlocal omnifunc=omni#Func
166 call feedkeys("i\<C-X>\<C-O>\<Esc>", 'xt') 166 call feedkeys("i\<C-X>\<C-O>\<Esc>", 'xt')
167 167
168 bwipe! 168 bwipe!
169 call delete('Xruntime', 'rf') 169 call delete('Xruntime', 'rf')
170 set omnifunc= 170 set omnifunc=