Browse files

fix use s:fixup.

  • Loading branch information...
1 parent 42e19e1 commit cd25caa428524032fcc285a6c6acf50137b2600d @mattn committed Mar 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 autoload/json.vim
View
4 autoload/json.vim
@@ -59,9 +59,9 @@ function! s:fixup(val, tmp)
elseif type(a:val) == 2
return a:val
elseif type(a:val) == 3
- return '[' . join(map(copy(a:val), 's:fixup(v:val)'), ',') . ']'
+ return '[' . join(map(copy(a:val), 's:fixup(v:val, a:tmp)'), ',') . ']'
elseif type(a:val) == 4
- return '{' . join(map(keys(a:val), 's:fixup(v:val).":".s:fixup(a:val[v:val])'), ',') . '}'
+ return '{' . join(map(keys(a:val), 's:fixup(v:val, a:tmp).":".s:fixup(a:val[v:val], a:tmp)'), ',') . '}'
else
return string(a:val)
endif

0 comments on commit cd25caa

Please sign in to comment.