mirror of
https://github.com/swaywm/sway.git
synced 2025-03-23 06:42:19 +00:00
Tabs and more style.
This commit is contained in:
parent
34cc909efb
commit
4c8343f1ee
1 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue