Ah, it seems systemlist() is broken. Handle NUL instead of NL.
diff -r dd44a527c2bd src/eval.c
--- a/src/eval.c Sun Apr 06 21:34:04 2014 +0200
+++ b/src/eval.c Wed Apr 09 19:19:50 2014 +0900
@@ -18334,17 +18334,13 @@
for (i = 0; i < len; ++i)
{
start = res + i;
- for (end = start; i < len && *end != NL; ++end)
+ for (end = start; i < len && *end != NUL; ++end)
++i;
s = vim_strnsave(start, (int)(end - start));
if (s == NULL)
goto errret;
- for (p = s, end = s + (end - start); p < end; ++p)
- if (*p == NUL)
- *p = NL;
-
li = listitem_alloc();
if (li == NULL)
{
@@ -18356,6 +18352,7 @@
list_append(list, li);
}
+ ++list->lv_refcount;
rettv->v_type = VAR_LIST;
rettv->vval.v_list = list;
list = NULL;
--
--
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.