diff options
author | ZyX <kp-pav@yandex.ru> | 2016-09-19 00:50:07 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-29 10:08:06 +0300 |
commit | 56e4c2f67e54b88f637d30e565313bc6b2c22f29 (patch) | |
tree | f1a4c2e4f1f8c6dc8787c04f0240319e72d9ac65 /src/nvim/eval/typval.c | |
parent | f80a00469fdba8a3dec0edae30c911d050485055 (diff) | |
download | rneovim-56e4c2f67e54b88f637d30e565313bc6b2c22f29.tar.gz rneovim-56e4c2f67e54b88f637d30e565313bc6b2c22f29.tar.bz2 rneovim-56e4c2f67e54b88f637d30e565313bc6b2c22f29.zip |
unittests: Test tv_list_concat()
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r-- | src/nvim/eval/typval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c index 9dd1b62d7d..1cc195ddc4 100644 --- a/src/nvim/eval/typval.c +++ b/src/nvim/eval/typval.c @@ -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); |