Mercurial > vim
diff src/testdir/test89.in @ 5108:cb0a5c9c0f9b v7.3.1297
updated for version 7.3.1297
Problem: findfile() directory matching does not work when a star follows
text. (Markus Braun)
Solution: Make a wildcard work properly. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 03 Jul 2013 17:14:00 +0200 |
parents | 3f2319a953b3 |
children | 46d6318d5b96 |
line wrap: on
line diff
--- a/src/testdir/test89.in +++ b/src/testdir/test89.in @@ -1,6 +1,7 @@ -Some tests for setting 'number' and 'relativenumber' -This is not all that useful now that the options are no longer reset when -setting the other. +- Some tests for setting 'number' and 'relativenumber' + This is not all that useful now that the options are no longer reset when + setting the other. +- Some tests for findfile() function STARTTEST :so small.vim @@ -49,6 +50,17 @@ STARTTEST :$put g :$put h :" +:let cwd=getcwd() +:cd ../.. +:$put ='' +:$put ='Testing findfile' +:$put ='' +:$put =findfile('test19.in','src/test*') +:exe "cd" cwd +:cd .. +:$put =findfile('test19.in','test*') +:$put =findfile('test19.in','testdir') +:exe "cd" cwd :/^results/,$w! test.out :q! ENDTEST