mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
unittests: Test tv_list_concat()
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user