mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
clipboard: support separate '+' and '*' clipboards
This commit is contained in:
@@ -5118,6 +5118,20 @@ void list_append_tv(list_T *l, typval_T *tv)
|
||||
list_append(l, li);
|
||||
}
|
||||
|
||||
/*
|
||||
* Add a list to a list.
|
||||
*/
|
||||
void list_append_list(list_T *list, list_T *itemlist)
|
||||
{
|
||||
listitem_T *li = listitem_alloc();
|
||||
|
||||
li->li_tv.v_type = VAR_LIST;
|
||||
li->li_tv.v_lock = 0;
|
||||
li->li_tv.vval.v_list = itemlist;
|
||||
list_append(list, li);
|
||||
++list->lv_refcount;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add a dictionary to a list. Used by getqflist().
|
||||
*/
|
||||
|
Reference in New Issue
Block a user