unittests: Test tv_list_concat()

This commit is contained in:
ZyX
2016-09-19 00:50:07 +03:00
parent f80a00469f
commit 56e4c2f67e
2 changed files with 143 additions and 1 deletions

View File

@@ -481,7 +481,7 @@ void tv_list_extend(list_T *const l1, list_T *const l2,
int todo = l2->lv_len;
// We also quit the loop when we have inserted the original item count of
// the list, avoid a hang when we extend a list with itself.
for (listitem_T *item = l2->lv_first
for (listitem_T *item = l2->lv_first
; item != NULL && --todo >= 0
; item = item->li_next) {
tv_list_insert_tv(l1, &item->li_tv, bef);