mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04: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
|
// 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…
Add table
Add a link
Reference in a new issue