1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

Shell: Improve the parsing of history event designators

This commit is contained in:
TheFightingCatfish 2021-07-30 18:55:57 +08:00 committed by Ali Mohammad Pur
parent 05c3755e62
commit f67c2c97b1
3 changed files with 98 additions and 72 deletions

View file

@ -917,7 +917,7 @@ struct HistorySelector {
if (kind == Index)
return selector;
if (kind == Last)
return size - 1;
return size - selector - 1;
VERIFY_NOT_REACHED();
}
};