mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 09:21: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
|
// Added because IDK if it's safe to remove that memmove
|
||||||
void list_arbitrary_insert(list_t *list, int index, void *item) {
|
void list_arbitrary_insert(list_t *list, int index, void *item) {
|
||||||
list_resize(list);
|
list_resize(list);
|
||||||
if(index > list->capacity) return;
|
if(index > list->capacity) {
|
||||||
if(list->length < index) list->length = index;
|
return;
|
||||||
|
}
|
||||||
|
if(list->length < index) {
|
||||||
|
list->length = index;
|
||||||
|
}
|
||||||
list->items[index] = item;
|
list->items[index] = item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue