mirror of
https://github.com/vim/vim.git
synced 2025-11-13 22:54:27 -05:00
updated for version 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)
This commit is contained in:
@@ -5,12 +5,15 @@ STARTTEST
|
||||
:so small.vim
|
||||
:set shell=doesnotexist
|
||||
: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
|
||||
|
||||
@@ -3,3 +3,6 @@
|
||||
|
||||
Xxx{
|
||||
Xxx$
|
||||
'sautest/autoload/Test104.vim
|
||||
sautest/autoload/footest.vim'
|
||||
['sautest/autoload/Test104.vim', 'sautest/autoload/footest.vim']
|
||||
|
||||
Reference in New Issue
Block a user