Hi,
After 7.4.1644 (sorry, it was my patch), string([a,a,a]) returns wrong
result. E.g.:
:let a = {}
:echo string([a,a,a])
[{}, {...}, {...}] " Expected: [{}, {}, {}]
string() should return a string which can be parsed by eval().
This is also related to the following topic:
https://groups.google.com/d/topic/vim_dev/LfMh2WGpx2o/discussion
I wrote a patch for this:
https://bitbucket.org/k_takata/vim-ktakata-mq/src/tip/fix-echo-and-string.patch
I refactored echo_string()/tv2string() and moved the common part to
echo_string_core().
I also added some tests into test_viml.vim, but they might be insufficient.
(I'm not sure test_viml.vim is the best place to add these tests.)
Regards,
Ken Takata
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.