Hi , i found a bug:
the return value from strpart can't add to a list directly or can't
used in a map function.
http://gist.github.com/347525
but if i use this way:
let subpath = strpart(file,strlen(a:path))
cal add(result , subpath )
this works
my vim version:
% vim --version
VIM - Vi
Hi,
c9s wrote:
Hi , i found a bug:
the return value from strpart can't add to a list directly or can't
used in a map function.
http://gist.github.com/347525
there is no bug, this script is just missing a closing parenthesis in
line 5.
Regards,
Jürgen
--
Sometimes I think the surest
On Mon, 29 Mar 2010 15:56:16 +0900, c9s cornelius.h...@gmail.com wrote:
http://gist.github.com/347525
...
for file in files
cal add(result , strpart(file,strlen(a:path) )
endfor
You did just a typo at the line 5.
There is no closing paren for add().
--
You received this