mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 01:11:28 +00:00
Tabs and more style.
This commit is contained in:
parent
34cc909efb
commit
4c8343f1ee
|
@ -50,8 +50,12 @@ void list_insert(list_t *list, int index, void *item) {
|
|||
// Added because IDK if it's safe to remove that memmove
|
||||
void list_arbitrary_insert(list_t *list, int index, void *item) {
|
||||
list_resize(list);
|
||||
if(index > list->capacity) return;
|
||||
if(list->length < index) list->length = index;
|
||||
if(index > list->capacity) {
|
||||
return;
|
||||
}
|
||||
if(list->length < index) {
|
||||
list->length = index;
|
||||
}
|
||||
list->items[index] = item;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue