aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2014-07-31 20:05:56 -0400
committerScott Prager <splinterofchaos@gmail.com>2014-08-04 12:01:58 -0400
commit5617ee8f352a2ddb61f52e5e0ae7347957d95991 (patch)
treeea02a09468e209540bb487187f82c05825ec0eb1 /src/nvim/testdir
parentb53034d423f055bbcca8b5a030dd51fcf458d182 (diff)
downloadrneovim-5617ee8f352a2ddb61f52e5e0ae7347957d95991.tar.gz
rneovim-5617ee8f352a2ddb61f52e5e0ae7347957d95991.tar.bz2
rneovim-5617ee8f352a2ddb61f52e5e0ae7347957d95991.zip
vim-patch:7.4.279
Problem: globpath() returns a string, making it difficult to get a list of matches. (Greg Novack) Solution: Add an optional argument like with glob(). (Adnan Zafar) https://code.google.com/p/vim/source/detail?r=8e9db1f27a0063df023cc05a760fce73255dad24
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test97.in11
-rw-r--r--src/nvim/testdir/test97.ok3
2 files changed, 10 insertions, 4 deletions
diff --git a/src/nvim/testdir/test97.in b/src/nvim/testdir/test97.in
index 59bb62d15c..d4ff6d9295 100644
--- a/src/nvim/testdir/test97.in
+++ b/src/nvim/testdir/test97.in
@@ -8,12 +8,15 @@ STARTTEST
:" consistent sorting of file names
:set nofileignorecase
:e test.out
-:put =glob('Xxx\{')
-:put =glob('Xxx\$')
+:$put =glob('Xxx\{')
+:$put =glob('Xxx\$')
:w! Xxx{
:w! Xxx\$
-:put =glob('Xxx\{')
-:put =glob('Xxx\$')
+:$put =glob('Xxx\{')
+:$put =glob('Xxx\$')
+:"
+:$put =string(globpath('sautest/autoload', '*.vim'))
+:$put =string(globpath('sautest/autoload', '*.vim', 0, 1))
:w
:qa!
ENDTEST
diff --git a/src/nvim/testdir/test97.ok b/src/nvim/testdir/test97.ok
index afa96a4de4..32cdcbf1be 100644
--- a/src/nvim/testdir/test97.ok
+++ b/src/nvim/testdir/test97.ok
@@ -3,3 +3,6 @@
Xxx{
Xxx$
+'sautest/autoload/Test104.vim
+sautest/autoload/footest.vim'
+['sautest/autoload/Test104.vim', 'sautest/autoload/footest.vim']