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:
parent
05c3755e62
commit
f67c2c97b1
3 changed files with 98 additions and 72 deletions
|
@ -917,7 +917,7 @@ struct HistorySelector {
|
|||
if (kind == Index)
|
||||
return selector;
|
||||
if (kind == Last)
|
||||
return size - 1;
|
||||
return size - selector - 1;
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue