* src/cache/ftcmru.c (FTC_MruList_RemoveSelection): Purge backwards.

gsoc-anurag-2023-docs-final
Alexei Podtelezhnikov 2 years ago
parent f2f9754542
commit 345f88109b
  1. 10
      src/cache/ftcmru.c

10
src/cache/ftcmru.c vendored

@ -330,22 +330,22 @@
FT_Pointer key )
{
FTC_MruNode first = list->nodes;
FTC_MruNode node, next;
FTC_MruNode prev, node;
if ( !first || !selection )
return;
next = first;
prev = first->prev;
do
{
node = next;
next = node->next;
node = prev;
prev = node->prev;
if ( selection( node, key ) )
FTC_MruList_Remove( list, node );
} while ( next != first );
} while ( node != first );
}

Loading…
Cancel
Save