mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +00:00
parent
a43d9c4fe0
commit
29ef65c458
1 changed files with 1 additions and 1 deletions
|
@ -1047,7 +1047,7 @@ void Shell::add_entry_to_cache(const String& entry)
|
||||||
if (match)
|
if (match)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (strcmp(cached_path[index].characters(), entry.characters()) < 0) {
|
while (index < cached_path.size() && strcmp(cached_path[index].characters(), entry.characters()) < 0) {
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
cached_path.insert(index, entry);
|
cached_path.insert(index, entry);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue